diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-08 11:38:39 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-08 12:17:09 +0200 |
commit | 8a4cc52bd62bdf7b06bf8919f208cdfb035a5816 (patch) | |
tree | 4490a9c6cce25d440e0595003735815275889cb4 /program/js/tiny_mce/plugins/paste/editor_plugin_src.js | |
parent | ec23abec1103a452fa6b4f75077020df0785eef1 (diff) |
TinyMCE 3.5
Diffstat (limited to 'program/js/tiny_mce/plugins/paste/editor_plugin_src.js')
-rw-r--r-- | program/js/tiny_mce/plugins/paste/editor_plugin_src.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/tiny_mce/plugins/paste/editor_plugin_src.js b/program/js/tiny_mce/plugins/paste/editor_plugin_src.js index 73fe7fe9a..9f1c35476 100644 --- a/program/js/tiny_mce/plugins/paste/editor_plugin_src.js +++ b/program/js/tiny_mce/plugins/paste/editor_plugin_src.js @@ -359,7 +359,7 @@ }
// IE9 adds BRs before/after block elements when contents is pasted from word or for example another browser
- if (tinymce.isIE && document.documentMode >= 9) {
+ if (tinymce.isIE && document.documentMode >= 9 && /<(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)/.test(o.content)) {
// IE9 adds BRs before/after block elements when contents is pasted from word or for example another browser
process([[/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g, '$1']]);
|