在用織夢做東西的時候,想在編輯器里修改圖片,如何實現呢?今天總結一下分享給大家吧。
解決方法修改:
/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();
}
大功告成,很簡單是不是呢?
此文由 網站目錄_網站網址收錄與提交入口 編輯,未經允許不得轉載!: