[Dojo-checkins] doughays - r18417 - dijit/trunk/_editor
dojo-checkins-admin at dojotoolkit.org
dojo-checkins-admin at dojotoolkit.org
Thu Jun 25 15:19:28 EDT 2009
Author: doughays
Date: Thu Jun 25 12:19:12 2009
New Revision: 18417
Modified:
dijit/trunk/_editor/RichText.js
Log:
References #9426 !strict. An Editor unrefactor regression. Firefox was not getting styleWithCSS set to false which caused generated blockquotes to be changed to div tags. insertBrOnReturn removed from _mozSettingsProps (RichText.js) since it was set by blockNodeForEnter=='BR' which was only defined in the EnterKeyHandling plugin.
Modified: dijit/trunk/_editor/RichText.js
==============================================================================
--- dijit/trunk/_editor/RichText.js (original)
+++ dijit/trunk/_editor/RichText.js Thu Jun 25 12:19:12 2009
@@ -718,7 +718,7 @@
// The editor is disabled; the text cannot be changed.
disabled: false,
- _mozSettingProps: ['styleWithCSS','insertBrOnReturn'],
+ _mozSettingProps: {'styleWithCSS':false},
_setDisabledAttr: function(/*Boolean*/ value){
this.disabled = value;
if(!this.isLoaded){ return; } // this method requires init to be complete
@@ -732,10 +732,6 @@
setTimeout(function(){ _this.editNode.unselectable = "off"; }, 0);
}
}else{ //moz
- if(value){
- //AP: why isn't this set in the constructor, or put in mozSettingProps as a hash?
- this._mozSettings=[false,this.blockNodeForEnter==='BR'];
- }
try{
this.document.designMode=(value?'off':'on');
}catch(e){ return; } // ! _disabledOK
More information about the Dojo-checkins
mailing list