fnp
/
fnpeditor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
942d7da
)
remove empty list
author
Jan Szejko
<janek37@gmail.com>
Wed, 22 Feb 2017 12:58:14 +0000
(13:58 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 27 Mar 2018 14:59:30 +0000
(16:59 +0200)
(cherry picked from commit
d5dade3
)
src/editor/modules/documentCanvas/canvas/keyboard.js
patch
|
blob
|
history
diff --git
a/src/editor/modules/documentCanvas/canvas/keyboard.js
b/src/editor/modules/documentCanvas/canvas/keyboard.js
index
dfe65d0
..
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();
+ if(list.contents().length === 0) {
+ list.detach();
+ }
return p;
}, {
success: function(p) {