includes/clientside/tinymce/plugins/safari/editor_plugin_src.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 476 f26a69c40431
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
    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