Changeset 11778
- Timestamp:
- 12/10/07 13:38:54 (7 months ago)
- Location:
- dijit/trunk
- Files:
-
- 2 modified
-
tests/test_Editor.html (modified) (4 diffs)
-
_editor/RichText.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/tests/test_Editor.html
r11325 r11778 26 26 <body> 27 27 28 <h1 class="testTitle"> Editor + Plugins Test</h1>28 <h1 class="testTitle"><label for="editor1">Editor + Plugins Test</label></h1> 29 29 30 30 <div style="border: 1px solid black;"> … … 35 35 <hr/> 36 36 <div style="border: 1px dotted black;"> 37 <h3> thud</h3>37 <h3><label for="thud">thud - from textarea</label></h3> 38 38 <textarea dojoType="dijit.Editor" height="" 39 39 extraPlugins="['dijit._editor.plugins.AlwaysShowToolbar']" 40 styleSheets="../../dojo/resources/dojo.css" >40 styleSheets="../../dojo/resources/dojo.css" id="thud"> 41 41 <p> 42 42 This editor is created from a textarea with AlwaysShowToolbar plugin (don't forget to set height=""). … … 55 55 <hr/> 56 56 <div style="border: 1px dotted black;"> 57 <h3> blah</h3>57 <h3><label for="blah">blah entry</label></h3> 58 58 <textarea dojoType="dijit.Editor" 59 59 plugins="['bold','italic','|','createLink','foreColor','hiliteColor']" 60 styleSheets="../../dojo/resources/dojo.css" >60 styleSheets="../../dojo/resources/dojo.css" id="blah"> 61 61 This instance includes optional toolbar buttons which pull in additional ui (dijit) code. 62 62 Note the dojo.require() statements required to pull in the associated editor plugins to make … … 67 67 <hr/> 68 68 <div style="border: 1px dotted black;"> 69 <h3> blah</h3>69 <h3><label for="blah2">Another blah entry</label></h3> 70 70 <textarea dojoType="dijit.Editor" 71 71 plugins="['bold','italic','|',{name:'dijit._editor.plugins.LinkDialog'}]" 72 styleSheets="../../dojo/resources/dojo.css" >72 styleSheets="../../dojo/resources/dojo.css" id="blah2"> 73 73 This instance demos how to: 74 74 <ol> -
dijit/trunk/_editor/RichText.js
r11771 r11778 439 439 // get screen reader text for mozilla here, too 440 440 this._localizedIframeTitles = dojo.i18n.getLocalization("dijit", "Textarea"); 441 // need to find any associated label element and update iframe document title 442 var label=dojo.query('label[for="'+this.id+'"]'); 443 if(label.length){ 444 this._localizedIframeTitles.iframeEditTitle = label[0].innerHTML + " " + this._localizedIframeTitles.iframeEditTitle; 445 } 441 446 } 442 447 // opera likes this to be outside the with block