r1603 - branches/bxe_2_0/js
[email protected] Sun, 5 Nov 2006 17:59:12 +0100 (CET)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Sun Nov 5 17:59:11 2006
New Revision: 1603
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Log:
select defaultContent nodes
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Sun Nov 5 17:59:11 2006
@@ -2391,13 +2391,17 @@
}
}
-
+ var sel = window.getSelection();
+ if (sel.isCollapsed && sel.anchorNode && sel.anchorNode.parentNode.getAttribute("__bxe_defaultcontent") == "true" ) {
+ var node = sel.anchorNode.parentNode;
+ sel.collapse(node.firstChild,0);
+ sel.extend(node.firstChild,node.firstChild.length);
+
+ }
dump ("cursor selection " + (new Date() - startTimer)/1000 + " sec\n");
bxe_history_snapshot();
dump ("history snapshot " + (new Date() - startTimer)/1000 + " sec\n");
-
-
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs