Bug: Tinymce editor body does not display the content in modal popup in mozilla firefox
See original GitHub issueWe have two editors.
- One is for inline editing, which admin user can perform directly on the page.
- Second is for editing the details of container in modal popup with content.
While opening the popup on link button click, first i check that whether any active editor is already activated or not, if any active editor is present then I display the warning message that “By continue this operation you will lost your changes”, if user clicks “Yes” in confirmation then I remove the active editor and opens the popup window.
Javascript code:
tinymce.remove();
On opening the modal popup, I bind HTML content in the TextArea present in the PopUp and pass that TextArea Object as “selector” to tinymce and initialize it.
HTML for Text Area
<asp:TextBox ID="txtEditorContent" runat="server" AutoPostBack="false" CssClass="editor-content" TextMode="MultiLine" />
Javascript code:
$(function () { tinymce.remove(); // initialize the tinyMCE Editor tinymce.init({ selector: ‘.editor-content’, menubar: false, branding: true, height: 350, code_dialog_height: 200, setup: function (editor) { editor.addButton(‘image_catelog’, { image: ‘/img/icons/ImageUpload.png’, tooltip: “Upload Image”, onclick: function () { jWDOpenImageCatalog(); } }); editor.addButton(‘set_link’, { image: ‘/img/icons/Link.png’, tooltip: “Set link”, onclick: function () { jWDCreateLinkForInlineEditor(g_slaveKey, g_isLive, g_cultureId); } }); }, plugins: [‘advlist autolink lists charmap print preview anchor textcolor code’, ‘searchreplace visualblocks code fullscreen’, ‘insertdatetime table contextmenu paste code help wordcount’], toolbar: 'insert | undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | table | code | image_catelog | set_link ', });
Current Behavior: HTML content is not displayed in editor. Expected Behavior: HTML content is should be displayed in editor.
Note: This issue is only generated in the firefox, same code works fine in Chrome
tinymce version: 4.7.11
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Having the same issue.
I am facing the same issue