Skip to content
Browse files

Removed \u200B as a non visual character on Gecko since it's apparent…

…ly used by some Asian languages.
  • Loading branch information...
1 parent 5d7a7f8 commit 1805a661ebf4836e57456df3c5e3eaa685ed9586 @spocke spocke committed Jun 26, 2012
View
2 jscripts/tiny_mce/classes/Formatter.js
@@ -41,7 +41,7 @@
isBlock = dom.isBlock,
forcedRootBlock = ed.settings.forced_root_block,
nodeIndex = dom.nodeIndex,
- INVISIBLE_CHAR = tinymce.isGecko ? '\u200B' : '\uFEFF',
+ INVISIBLE_CHAR = '\uFEFF',
MCE_ATTR_RE = /^(src|href|style)$/,
FALSE = false,
TRUE = true,
View
2 jscripts/tiny_mce/classes/dom/Serializer.js
@@ -344,7 +344,7 @@
// Replace all BOM characters for now until we can find a better solution
if (!args.cleanup)
- args.content = args.content.replace(/\uFEFF|\u200B/g, '');
+ args.content = args.content.replace(/\uFEFF/g, '');
// Post process
if (!args.no_events)
View
5 jscripts/tiny_mce/plugins/noneditable/editor_plugin_src.js
@@ -14,10 +14,7 @@
var VK = tinymce.VK;
function handleContentEditableSelection(ed) {
- var dom = ed.dom, selection = ed.selection, invisibleChar, caretContainerId = 'mce_noneditablecaret';
-
- // Setup invisible character use zero width space on Gecko since it doesn't change the height of the container
- invisibleChar = tinymce.isGecko ? '\u200B' : '\uFEFF';
+ var dom = ed.dom, selection = ed.selection, invisibleChar, caretContainerId = 'mce_noneditablecaret', invisibleChar = '\uFEFF';
// Returns the content editable state of a node "true/false" or null
function getContentEditable(node) {

0 comments on commit 1805a66

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