Opened 5 years ago

Closed 3 years 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:


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

After calling the following code

this.startEditor = function () {

if (!contentLoaded) {




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

$('#' + name).on('', function () {



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=""&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 5 years ago by guest

Xinha is dead. Move to the CKEditor or TinyMCE.

comment:2 Changed 3 years ago by gogo

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