From a118bd2e94e9704f3e7e8d9cf235535f2968eaee Mon Sep 17 00:00:00 2001 From: Gavin Cornwell Date: Wed, 21 Oct 2009 06:51:48 +0000 Subject: [PATCH] Fix for ETHREEOH-1844: Text field (areas) became non-editable if user use navigate-remove combination for repeatable elements on Create Web content based on web form screen git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17059 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/web/scripts/ajax/xforms.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/web/scripts/ajax/xforms.js b/source/web/scripts/ajax/xforms.js index 101d5e5a90..f24a6d5bde 100644 --- a/source/web/scripts/ajax/xforms.js +++ b/source/web/scripts/ajax/xforms.js @@ -3393,6 +3393,10 @@ alfresco.xforms.Repeat = alfresco.xforms.VGroup.extend({ var fromChild = this.getChildAt(fromIndex); var toChild = this.getChildAt(toIndex); this.xform.swapRepeatItems(fromChild, toChild); + + // set tinymce current instance to null + alfresco.xforms.RichTextEditor.currentInstance = null; + var anim = dojo.lfx.html.fadeOut(fromChild.domContainer, 500); anim.onEnd = function() { @@ -3636,6 +3640,9 @@ alfresco.xforms.Repeat = alfresco.xforms.VGroup.extend({ event.stopPropagation(); if (this.isInsertRepeatItemEnabled()) { + // set tinymce current instance to null + alfresco.xforms.RichTextEditor.currentInstance = null; + this.setFocusedChild(null); var trigger = this._getRepeatItemTrigger("insert", { position: "before" }); trigger.fire();