Skip to content
Browse files

Fixed bug where paste as plaintext on WebKit wouldn't produce br and …

…p elements correctly.
  • Loading branch information...
1 parent f7ca965 commit dd91c19920d38d121dd05355f6e418528b27b313 @spocke spocke committed
Showing with 2 additions and 1 deletion.
  1. +1 −0 changelog.txt
  2. +1 −1 jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
View
1 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.
View
2 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, '<br />')});
return;
}

0 comments on commit dd91c19

Please sign in to comment.
Something went wrong with that request. Please try again.