Opened 8 years ago
Closed 7 years ago
#16005 closed defect (patchwelcome)
dijit.Editor. Changing foreground/background color loses focus
Reported by: | philip | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Editor | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Load this application and type some text into the editor window. Select a different foreground or background color. The editor window does not have focus after the change. If you set the color twice, it will have focus.
I verified this issue in IE9, FF15 and Chrome 21.
<!DOCTYPE html> <html > <head> <style type="text/css"> body, html { width:100%; height:100%; margin: 0; padding:0; border:0; overflow:hidden;} #rte_all { background-color: #f0f0f0; } #rte_div { width:600px; height: 400px; overflow:hidden; border: none; } </style> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dijit/themes/claro/claro.css"> <script>dojoConfig = {parseOnLoad: true}</script> <script src='http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js'></script> <script> require([ "dojo/parser", "dijit/Editor", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/_editor/plugins/TextColor", "dijit/_editor/plugins/FontChoice", "dijit/_editor/plugins/TextColor", "dijit/_editor/plugins/LinkDialog" ]);</script> </head> <body class="claro"> <div id="rte_all"> <div id="rte_div" data-dojo-type="dijit/layout/BorderContainer"> <div id="rte_container" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"> <div style="width:600px; height:400px;" data-dojo-type="dijit/Editor" id="editor2" data-dojo-props="extraPlugins:['foreColor','hiliteColor',{name:'dijit/_editor/plugins/FontChoice', command:'fontName', generic:true}, {name:'dijit/_editor/plugins/LinkDialog', command:'createLink'}]"> <p>Editor body.</p> </div> </div> </div> </div> </body> </html>
Note: See
TracTickets for help on using
tickets.
Unlikely this will be fixed unless someone wants to supply a patch (including a test case).