[Dojo-checkins] bill - r15159 - dijit/trunk/_editor/plugins
dojo-checkins-admin at dojotoolkit.org
dojo-checkins-admin at dojotoolkit.org
Sun Sep 7 14:48:24 UTC 2008
Author: bill
Date: Sun Sep 7 07:48:18 2008
New Revision: 15159
Modified:
dijit/trunk/_editor/plugins/EnterKeyHandling.js
Log:
text nodes should definitely not trigger a line break.
refs #7613 !strict.
Modified: dijit/trunk/_editor/plugins/EnterKeyHandling.js
==============================================================================
--- dijit/trunk/_editor/plugins/EnterKeyHandling.js (original)
+++ dijit/trunk/_editor/plugins/EnterKeyHandling.js Sun Sep 7 07:48:18 2008
@@ -329,9 +329,8 @@
var currentNode;
while(currentNodeIndex < el.childNodes.length){
currentNode = el.childNodes[currentNodeIndex];
- if( (currentNode.nodeName!='BR') &&
- (currentNode.nodeType==1) &&
- (dojo.style(currentNode, "display")!="block")
+ if( currentNode.nodeType==3 || // text node
+ (currentNode.nodeType==1 && currentNode.nodeName!='BR' && dojo.style(currentNode, "display")!="block")
){
nodesInLine.push(currentNode);
}else{
More information about the Dojo-checkins
mailing list