导读:在用织梦做东西的时候,想在编辑器里修改图片,如何实现呢?今天总结一下分享给大家吧。解决方法修改: include FCKeditor editor dialog d
在用织梦做东西的时候,想在编辑器里修改图片,如何实现呢?今天总结一下分享给大家吧。
解决方法修改:
\include\FCKeditor\editor\dialog\dede_image.php
function ImageOK2()
{
var iimghtml = document.form1.imghtml.value;
// FCK.InsertHtml(iimghtml);
var newCode = FCK.CreateElement('DIV');
newCode.innerHTML = iimghtml;
window.parent.Cancel();
}
修改为
复制代码代码如下:
- function ImageOK2()
- {
- var iimghtml = document.form1.imghtml.value;
- FCK.InsertHtml(iimghtml);
- //var newCode = FCK.CreateElement('DIV');
- // newCode.innerHTML = iimghtml;
- window.parent.Cancel();
- }
大功告成,很简单是不是呢?