一旦选择了图像,TinyFCK就不会插入图像URL

时间:2011-06-16 02:09:08

标签: asp.net-mvc-3 tinymce

我看到“结果”正确显示图像的路径,在目标中我看到src是文本框名称,其中必须插入路径。

问题是路径没有在src id文本框中插入含义。含义 target.value = result; 无效。有人告诉我什么不对吗?

tinyMCE.init({
    mode: "none",
    theme: "advanced",

    plugins: 'autoresize, save,preview,table,paste,insertdatetime,autolink,lists,spellchecker,style,inlinepopups,preview,xhtmlxtras,wordcount,searchreplace,directionality,visualchars,advhr,advimage,advlink,iespell,media,contextmenu,noneditable,nonbreaking,template',

    // Theme options
    theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,styleselect,fontsizeselect",
    theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,code,|,insertdate,inserttime,|,forecolor,backcolor,|,preview,|,insertfile,insertimage",
    theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,advhr,template,|,ltr,rtl",
    theme_advanced_buttons4: "",

    theme_advanced_toolbar_align: "left",
    theme_advanced_statusbar_location: "bottom",
    theme_advanced_resizing: true,

    theme_advanced_resize_horizontal: false,

    file_browser_callback: "fileBrowserCallBack",


});

    function fileBrowserCallBack(field_name, url, type, win) {
    var connector = "../../filemanager/browser.html?Connector=connectors/php/connector.php";
    var enableAutoTypeSelection = true;

    var cType;
    tinyfck_field = field_name;
    tinyfck = win;

    switch (type) {
        case "image":
            cType = "Image";
            break;
        case "flash":
            cType = "Flash";
            break;
        case "file":
            cType = "File";
            break;
    }

    if (enableAutoTypeSelection && cType) {
        connector += "&Type=" + cType;
    }

    window.open(connector, "tinyfck", "modal,width=600,height=400");
}

以下是截图

fck filemanager with TinyMCE

0 个答案:

没有答案