equal
deleted
inserted
replaced
43 ed.getDoc().execCommand("Delete", false, ' '); |
43 ed.getDoc().execCommand("Delete", false, ' '); |
44 }); |
44 }); |
45 |
45 |
46 // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973 |
46 // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973 |
47 ed.onKeyPress.add(function(ed, e) { |
47 ed.onKeyPress.add(function(ed, e) { |
48 if (e.keyCode == 13 && e.shiftKey) { |
48 if (e.keyCode == 13 && (e.shiftKey || ed.settings.force_br_newlines && ed.selection.getNode().nodeName != 'LI')) { |
49 t._insertBR(ed); |
49 t._insertBR(ed); |
50 Event.cancel(e); |
50 Event.cancel(e); |
51 } |
51 } |
52 }); |
52 }); |
53 |
53 |