JS error if editor loaded within a div with display:none
21 posts
• Page 2 of 3 • 1, 2, 3
Re: JS error if editor loaded within a div with display:noneI have this error also.
FCKEditor 2.6 internals/fck.js line 898 range.select(); <----- error happens here So IE is throwing an exception because the _FCK_PaddingNodeListener is trying to select a range while hidden. There probably needs to be some code in this listener to return if the editor is not visible. This listener is not run if FCKConfig.EnterMode = 'br'; is set. ( if you can live with that ) As a quick hack (and fix for me), I put a try/catch around the select() to ignore this specific error:
|
|
Re: JS error if editor loaded within a div with display:noneJust updated FCKeditor to 2.6 and still see issues when editor is in hidden div.
|
Re: JS error if editor loaded within a div with display:noneJust applied patch you have posted and it works very well
|
Re: JS error if editor loaded within a div with display:noneI've solved the problem!
the right field need a default value. 也就是, fckeditor对应的字段不能为空值,设一个默认的值,就可以回避该错误!
|
Re: JS error if editor loaded within a div with display:noneIs there a better fix for this? We using visibility or CSS to hide is not an option as we are using AJAX/DHTML to open and close the area using effects. The div has to be display=none. Any other ways around this?
|
Re: JS error if editor loaded within a div with display:noneThanks so much for this (i mean the try-catch fix)!! Works like a treat! Except the file i had to edit was the compressed version in /editor/js/fckeditorcodecode_ie.js
z
|
Re: JS error if editor loaded within a div with display:noneThanks man, you really save my ass!
In fact the "nodisplay" class is a class with a display:none .media { display:none;}
|
Re: JS error if editor loaded within a div with display:none
I experienced this very same error with CKEditor3.0. My editor is placed in an animated div that opens and closes. My solution was to call CKEDITOR.replace(a,...) AFTER the animation completes and the div display attribute has been set to 'block'.
|
Re: JS error if editor loaded within a div with display:noneHai, somebody suggest to include teh FCKeditor_OnComplete( editorInstance ).
To where and how it should be placed, Can you Tell me that Please ?
|
21 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: Google [Bot], Yahoo [Bot] and 6 guests