Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-09-10 10:22:14

Practicality
Xinha Community Member
Registered: 2007-02-15
Posts: 24

Using Xihna with jQuery

FYI, I received a message asking how to do this, so I thought I would share it with everybody. Xinha is able to work fine with jQuery, but it needs to start the editor after all the JavaScript is loaded.

To do this, remove the line from your config file that calls the initialization function. It should look like this:

window.onload = xinha_init;

Then place within your jQuery initialization function, the code to start the editor. Like this:

$(document).ready(function() {
    xinha_init();
});

Offline

Board footer

Powered by FluxBB