sleemanj / xinha

WYSIWYG HTML Editor Component (turns <textarea> into HTML editors)
http://trac.xinha.org/
Other
13 stars 2 forks source link

Forums Unavailable... Xinha and Bootstrap Modal (Trac #1668) #1668

Closed sleemanj closed 4 years ago

sleemanj commented 9 years ago

I cannot get Xinha to initialize correctly inside a Bootstrap Modal Dialogl

After calling the following code

this.startEditor = function () { editor.focusEditor(); editor.activateEditor();
if (!contentLoaded) { loadContent(originalContent); } fixEditorSize(); }

from the onshow event of the bootstrap modal (and checking that the code is exectured)

$('#' + name).on('shown.bs.modal', function () {
    self.startEditor();
  })

I get the following HTML

As you can see the text area is initialized but the body of the html document in the iFrame is not. If I run the same code without the Bootstrap modal it all works as expected.

Reported by guest, migrated from http://trac.xinha.org/ticket/1668

sleemanj commented 9 years ago

guest commented:

Xinha is dead. Move to the CKEditor or TinyMCE.

sleemanj commented 9 years ago