Opened 3 years ago

Closed 10 months ago

#1668 closed defect (invalid)

Forums Unavailable... Xinha and Bootstrap Modal

Reported by: guest Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

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

<tr style="vertical-align: top;"><td class="panels panels_left" style="width: 200px; display: none;"></td><td style="position: relative;">
<iframe class="xinha_iframe" id="XinhaIFrame_xinhaDescriptionEditor" src="/XFILES/Frameworks/Xinha/popups/blank.html" style="width: 960px; height: 334px;">
<html><head></head><body onload="window.xinhaReadyToRoll = true;"></body></html>
</iframe><textarea name="xinhaDescriptionEditor" class="xinha_textarea" id="xinhaDescriptionEditor" style="width: 960px; height: 334px; display: none;" spellcheck="false" rows="10" cols="64">
&lt;p xmlns="http://www.w3.org/1999/xhtml"&gt;In the heart of Norwich stands the Cathedral....&lt;/p&gt;
</textarea></td><td class="panels panels_right" style="width: 200px; display: none;"></td></tr>

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.

Change History (2)

comment:1 Changed 3 years ago by guest

Xinha is dead. Move to the CKEditor or TinyMCE.

comment:2 Changed 10 months ago by gogo

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.