开发者

TinyFCK not inserting image URL once image selected

I see "result" is showing path of the image properly and in target I see src which is textbox name where path has to insert.

Problem is path is not inserting meaning in the src id textbox. Meaning target.value = result; is not working. Anyone tell me whats wrong please?

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

    plugins: 'autoresize, save,preview,tabl开发者_开发问答e,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");
}

Below is the screen shot

TinyFCK not inserting image URL once image selected

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜