Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…p elements correctly.
  • Loading branch information...
commit dd91c19920d38d121dd05355f6e418528b27b313 1 parent f7ca965
Johan Sörlin authored September 30, 2010
1  changelog.txt
... ...
@@ -1,5 +1,6 @@
1 1
 Version 3.3.9.3 (2010-xx-xx)
2 2
 	Fixed issue where WebKit wouldn't correctly apply ins/del in xhtmlxtras plugin.
  3
+	Fixed bug where paste as plaintext on WebKit wouldn't produce br and p elements correctly.
3 4
 Version 3.3.9.2 (2010-09-29)
4 5
 	Fixed bug where placing the caret in IE 9 beta 1 would not work correctly if you clicked out side the document body element.
5 6
 	Fixed bug where IE 9 beta 1 wouldn't resize the editor correctly since the events didn't fire as previous versions did.
2  jscripts/tiny_mce/plugins/paste/editor_plugin_src.js
@@ -137,7 +137,7 @@
137 137
 				// Check if browser supports direct plaintext access
138 138
 				if (ed.pasteAsPlainText && (e.clipboardData || dom.doc.dataTransfer)) {
139 139
 					e.preventDefault();
140  
-					process({content : (e.clipboardData || dom.doc.dataTransfer).getData('Text')}, true);
  140
+					process({content : (e.clipboardData || dom.doc.dataTransfer).getData('Text').replace(/\r?\n/g, '<br />')});
141 141
 					return;
142 142
 				}
143 143
 

0 notes on commit dd91c19

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