Merhaba arkadaşlar

editor olarak bunu kullanmaktayım. gercekten cok guzel bir editor. yapmak istediğim ufak değişiklikler var. muşteri mesela resim eklerken editorden ekliyor. html kod olarak da

HTML:


mesela bu eklenmekte. benim yapmak istediğim bu html kodu eklerken bunlara otomatik link eklemek. yani

HTML:


biraz karıştırdım fonksiyonların nerede olduğunu buldum fakat js bilgim fazla olmadığı icin değişiklik yapamadım.

wysiwyg.js dosyasındaki resim yukleme fonksiyonu
Kod:
insertImage: function(src, width, height, align, border, alt, hspace, vspace, n) // set the attributes WYSIWYG_Core.setAttribute(img, "src", src); WYSIWYG_Core.setAttribute(img, "style", "width:" + width + ";height:" + height); if(align != "") else WYSIWYG_Core.setAttribute(img, "border", border); WYSIWYG_Core.setAttribute(img, "alt", alt); WYSIWYG_Core.setAttribute(img, "hspace", hspace); WYSIWYG_Core.setAttribute(img, "vspace", vspace); img.removeAttribute("width"); img.removeAttribute("height"); // on update exit here if(update) // Check if IE or Mozilla (other) if (WYSIWYG_Core.isMSIE) else },

php dosyası
PHP:
openWYSIWYG | Insert Image [TABLE]