Fixed bug #16148: htmlArea RTE: Missing cancel browser default after inserting charac...
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 27 Oct 2010 17:53:51 +0000 (17:53 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 27 Oct 2010 17:53:51 +0000 (17:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9211 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index f35dc69..76bc691 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-27  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #16148: htmlArea RTE: Missing cancel browser default after inserting character or emoticon
+
 2010-10-27  Steffen Kamper  <steffen@typo3.org>
 
        * Fixed bug #16122: Improve tooltip behaviour
index eebcb97..24c629b 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-27  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #16148: htmlArea RTE: Missing cancel browser default after inserting character or emoticon
+
 2010-10-25  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #16087: htmlArea RTE: Missing soft hyphen entity in CharacterMap
index 0088ce8..faad655 100644 (file)
@@ -441,6 +441,7 @@ HTMLArea.CharacterMap = HTMLArea.Plugin.extend({
         * @return      void
         */
        insertCharacter: function (event, target) {
+               event.stopEvent();
                this.editor.focus();
                this.restoreSelection();
                var entity = Ext.get(target).dom.innerHTML;
@@ -451,6 +452,7 @@ HTMLArea.CharacterMap = HTMLArea.Plugin.extend({
                                // Firefox and WebKit convert '&nbsp;' to '&amp;nbsp;'
                        this.editor.insertNodeAtSelection(this.editor.document.createTextNode(((Ext.isGecko || Ext.isWebKit) && entity == '&nbsp;') ? '\xA0' : entity));
                }
+               return false;
        },
        /*
         * Reset focus on the the current selection, if at all possible
index 21d1aa4..acaf57b 100644 (file)
@@ -154,6 +154,7 @@ HTMLArea.InsertSmiley = HTMLArea.Plugin.extend({
         * @return      void
         */
        insertImageTag: function (event, target) {
+               event.stopEvent();
                this.editor.focus();
                this.restoreSelection();
                var icon = Ext.get(target).first();
@@ -166,5 +167,6 @@ HTMLArea.InsertSmiley = HTMLArea.Plugin.extend({
                        this.editor.selectNode(imgTag, false);
                }
                this.close();
+               return false;
        }
 });