Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…p elements correctly.
  • Loading branch information...
commit dd91c19920d38d121dd05355f6e418528b27b313 1 parent f7ca965
@spocke spocke authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.