Fixed bug #15797: htmlArea RTE: Problem in Firefox inserting non-breaking space with...
authorStanislas Rolland <typo3@sjbr.ca>
Sat, 25 Sep 2010 15:50:42 +0000 (15:50 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Sat, 25 Sep 2010 15:50:42 +0000 (15:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8892 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/CharacterMap/character-map.js

index d5f53ef..38c693c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed bug #15430: htmlArea RTE: Text not editable after pasting with server-based cleaning
        * Follow-up to bug #15430: htmlArea RTE: Text not editable after pasting with server-based cleaning
+       * Fixed bug #15797: htmlArea RTE: Problem in Firefox inserting non-breaking space with Insert Special Character dialogue
 
 2010-09-25  Steffen Gebert  <steffen@steffen-gebert.de>
 
index 6b5b632..65f2c7d 100644 (file)
@@ -2,6 +2,7 @@
 
        * Fixed bug #15430: htmlArea RTE: Text not editable after pasting with server-based cleaning
        * Follow-up to bug #15430: htmlArea RTE: Text not editable after pasting with server-based cleaning
+       * Fixed bug #15797: htmlArea RTE: Problem in Firefox inserting non-breaking space with Insert Special Character dialogue
 
 2010-09-12  Stanislas Rolland  <typo3@sjbr.ca>
 
index 9636a74..6f0c64c 100644 (file)
@@ -444,7 +444,8 @@ HTMLArea.CharacterMap = HTMLArea.Plugin.extend({
                        this.editor.insertHTML(entity);
                        this.saveSelection();
                } else {
-                       this.editor.insertNodeAtSelection(this.editor.document.createTextNode(entity));
+                               // Firefox converts '&nbsp;' to '&amp;nbsp;'
+                       this.editor.insertNodeAtSelection(this.editor.document.createTextNode((Ext.isGecko && entity == '&nbsp;') ? '\xA0' : entity));
                }
        },
        /*