diff --git a/changelog.txt b/changelog.txt index ec7c70b66ee..5e6c77a64c0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,6 @@ Version 3.3.9.3 (2010-xx-xx) Fixed issue where WebKit wouldn't correctly apply ins/del in xhtmlxtras plugin. + Fixed bug where paste as plaintext on WebKit wouldn't produce br and p elements correctly. Version 3.3.9.2 (2010-09-29) Fixed bug where placing the caret in IE 9 beta 1 would not work correctly if you clicked out side the document body element. Fixed bug where IE 9 beta 1 wouldn't resize the editor correctly since the events didn't fire as previous versions did. diff --git a/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js b/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js index ad9740f3fe1..bedb3aff56b 100644 --- a/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js +++ b/jscripts/tiny_mce/plugins/paste/editor_plugin_src.js @@ -137,7 +137,7 @@ // Check if browser supports direct plaintext access if (ed.pasteAsPlainText && (e.clipboardData || dom.doc.dataTransfer)) { e.preventDefault(); - process({content : (e.clipboardData || dom.doc.dataTransfer).getData('Text')}, true); + process({content : (e.clipboardData || dom.doc.dataTransfer).getData('Text').replace(/\r?\n/g, '
')}); return; }