Skip to content

Commit

Permalink
Fixed bug where paste as plaintext on WebKit wouldn't produce br and …
Browse files Browse the repository at this point in the history
…p elements correctly.
  • Loading branch information
spocke committed Sep 30, 2010
1 parent f7ca965 commit dd91c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit dd91c19

Please sign in to comment.