Is it a bug or not?

Added by Okan Koc 10 months ago

When I try to locate div of elrte in a div which's style="display:none", I'm getting error in firefox-5 as

" 
Error: uncaught exception: [Exception... 
"Component returned failure code: 0x80004005 
(NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]"  
nsresult: "0x80004005 
(NS_ERROR_FAILURE)"  
location: "JS frame :: http://localhost/mypage/admin/elrte/js/elrte.min.js
 :: <TOP_LEVEL> :: line 34"  data: no]
" 


but when I clear "display:none" there is no problem.

here is my code,


<script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
            var opts = {
                cssClass : 'el-rte',
                // lang     : 'ru',
                height   : 450,
                width    : 740,
                toolbar  : 'complete',
                cssfiles : ['elrte/css/elrte-inner.css']
            }
            $('#box').elrte(opts);
        });
    </script>
<div style="display:none">
<div id="box"></div>
</div>

Replies (2)

RE: Is it a bug or not? - Added by Dmitry Levashov 10 months ago

elRTE must be created on visible element

RE: Is it a bug or not? - Added by Okan Koc 10 months ago

hımm, so I have to initialize it after javascript function display_div(). Thanks

(1-2/2)