Virtual Happy Hour is canceled this month (March) due to Good Friday.
Virtual Happy Hour is canceled this month (March) due to Good Friday.
EPiServer.CMS.UI 11.3.1
Feb 20, 2018
Mar 05, 2018
CMS UI
Closed, Fixed and tested
Steps to reproduce
1. Create a custom editor descriptor that will use a Floating editor in OPE (for example SimpleMDE, https://tedgustaf.com/blog/2016/custom-markdown-editor-for-string-properties-in-episerver/).
2. Override the destroy method (Editor.js if the example above was used).
destroy: function () { // Call a method that uses the parent dialog element // If using the SimpleMDE example, call; this.editor.toTextArea(); this.inherited(arguments); },
3. Set the UIHint of a model property to use it.
4. Open the site and go to edit that property.
5. Click the property to open the floating editor.
6. Click somewhere on the page to close the editor.
7. Click the property again.
Expected: The floating editor should be shown again.
Actual: Editor is not shown, and there is an error in the console. Example with SimpleMDE gives:
simplemde.js:8273 Uncaught TypeError: Cannot read property 'removeChild' of null at CodeMirror.cm.toTextArea (simplemde.js:8273) at SimpleMDE.toTextArea (simplemde.js:17008) at Object.destroy (Editor.js:89) at Object._destroyDialog (FloatingEditorWrapper.js:214) at Object.startEdit (FloatingEditorWrapper.js:96) at Object.<anonymous> (EditingBase.js:720) at dojo.js:3135 at Object._onOverlayItemClick (EditingBase.js:735) at Object.inherited__debug (dojo.js:4194) at Object._onOverlayItemClick (OnPageEditing.js:131)