fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
list fixes: headers, invalid elements, easier ending
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
keyboard.js
diff --git
a/src/editor/modules/documentCanvas/canvas/keyboard.js
b/src/editor/modules/documentCanvas/canvas/keyboard.js
index
8762d85
..
e7a3ba3
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/keyboard.js
+++ b/
src/editor/modules/documentCanvas/canvas/keyboard.js
@@
-375,6
+375,9
@@
var keyEventHandlers = [
var p = list.after({tagName: 'div', attrs: {'class': 'p'}});
p.append({text: ''});
item.detach();
var p = list.after({tagName: 'div', attrs: {'class': 'p'}});
p.append({text: ''});
item.detach();
+ if(list.contents().length === 0) {
+ list.detach();
+ }
return p;
}, {
success: function(p) {
return p;
}, {
success: function(p) {
@@
-432,7
+435,7
@@
var keyEventHandlers = [
result = s.element.wlxmlNode.insertNewNode();
}, {
metadata: {
result = s.element.wlxmlNode.insertNewNode();
}, {
metadata: {
- description: gettext('
Split
ting node'),
+ description: gettext('
Inser
ting node'),
fragment: s.toDocumentFragment()
}
});
fragment: s.toDocumentFragment()
}
});