English 中文(简体)
TinyMce图像manager在用一机使用时,打上了图象
原标题:TinyMce imagemanager won t generate image path when used with an iframe

我已成功地设置了小点,以便在一行内工作。 一切都完美无缺。

然而,当你使用图像分析器收集拟插入或替换在编辑中的形象时,不会把图像的路径(和档案名称)复制到“Insert/edit图像”箱中的“URL”输入。 盒子要么保持空洞,要么保持以前形象的地址。

行为与案卷曼纳格金gin一样。

tinyMCE.init(    
{    
    mode : "none",    
    editor_selector : "mceEditor",    
    theme : "advanced",    
    plugins : "filemanager,imagemanager,autoresize,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,spellchecker",    
    theme_advanced_buttons1 : "insertfile,insertimage,advimage,imagemanager,bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,nonbreaking,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist",    
    theme_advanced_buttons2 : "blockquote,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,|,forecolor,backcolor,|,charmap,iespell,media,advhr",    
    theme_advanced_layout_manager : "SimpleLayout",    
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,strikethrough",    
    theme_advanced_buttons4 : "styleselect,formatselect,fontselect,fontsizeselect,|,undo,redo,|,spellchecker",    
    theme_advanced_toolbar_location : "external",    
    theme_advanced_toolbar_align : "left",    
    theme_advanced_statusbar_location : "bottom",    
    relative_urls : true,    
    document_base_url : "http://xxxxxxxxxxx.com/",    
    auto_resize : true,    
    content_css : "/custom/css/style.css",    
    extended_valid_elements : "iframe[height|width|src|frameborder|scrolling]",    
});    

/*    
    The following code comes from- http://tinymce.moxiecode.com/punbb/viewtopic.php?id=12966    
    Without it the editor only loads 10% of the time. With it, it s pretty much 100% consistent.    
    The other changes mentioned in the post have also been implemented.    
*/    
var setupTiny = function()    
{    
    var ifrObj = document.getElementById( pageEditIFrame );    
    var win = ifrObj;    
    if (win.contentWindow)    
    {    
        win = win.contentWindow;    
    }    

    var d;    
    if(ifrObj.contentDocument)    
    {    
        d = ifrObj.contentDocument;    
    }    
    else if (ifrObj.contentWindow)    
    {    
        d = ifrObj.contentWindow.document;    
    }    
    else if (ifrObj.document)    
    {    
        d = ifrObj.document;    
    }    

    textAreas.each(function(txtEl)    
    {    
        tinyMCE.execCommand( mceAddFrameControl , false,    
        {    
            element_id : txtEl,    
            window : win,    
            doc : d    
        });    
    });    
};    

//Waiting 1 second seems to make the editor load more reliably.    
setTimeout("setupTiny();",1000);
问题回答

我所处理的一个类似问题只是最近几版的Edpa, Chrome和IE对我的工作罚款。 不清楚这个问题究竟是同一问题(不使用 if子),而是以同样的方式提出。

Here s where I found my solution: http://tinymce.moxiecode.com/punbb/viewtopic.php?id=23302

正如你可以读到的那样,锡奈尔文化研究中心的一位守则者认为自己在FF中是一杯子,尽管这些固定点比它更看一味——在“非洲”中仍然有一杯,在3.5点就固定了。 这里为我工作的解决办法(引用该职位):

1) Go to tiny_mce.js

2) Find this line: this.isGecko = ua.indexOf( Gecko ) != -1;

增加:

this.isGecko369 = (this.isGecko && ua.indexOf( irefox/3.6. )!= -1 && parseInt(ua.substr(ua.indexOf( irefox/3.6. )+11,2)) >= 9);
this.isGecko369 = (this.isGecko369 || (this.isGecko && ua.indexOf( irefox/3.5. )!= -1 && parseInt(ua.substr(ua.indexOf( irefox/3.5. )+11,2)) >= 9 ) );

3) Find this line: fixGeckoBaseHREFBug : function(m, e, h) {

below that there is this line: if (tinyMCE.isGecko) { alter it with: if (tinyMCE.isGecko && !tinyMCE.isGecko369) {





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签