Announcement

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

#1 2009-01-22 06:08:34

loack31
New member
Registered: 2009-01-22
Posts: 5

Xinha editor in a JQuery Dialog

Hi, and, before asking question, thanks for Xinhan editor. It's really a good project.

I have a problem using Xinha Editor in a JQuery dialog, close by default.

To do short :

If I open the dialog without doing anything to the editor, it open like read/only. I found a trick and, if I do

          $("#editMessageDiv").dialog("open");
          xinha_editors.message_text.initSize();
          xinha_editors.message_text.iframeLoadDone = false;
          xinha_editors.message_text.initIframe();

that works fine.... the first time.

If I close the dialog and reopen, the editor opens well except that it' s impossible to write in.

I write a test page there :
http://pileouface.org.free.fr/test/test.html

I have the problem under FF3 and IE6.
The version of Xinha is the last build, the I have the same problem with the last stable.

Really tanks for your help, I don't have more ideas,

Loack

Last edited by loack31 (2009-01-22 09:54:04)

Offline

#2 2009-01-22 12:01:49

loack31
New member
Registered: 2009-01-22
Posts: 5

Re: Xinha editor in a JQuery Dialog

After a part of the day searching an answer, I think having found a solution :

          $("#editMessageDiv").dialog("open");
          xinha_editors.message_text.deactivateEditor();
          xinha_editors.message_text.initSize();
          xinha_editors.message_text.iframeLoadDone = false;
          xinha_editors.message_text.initIframe();

Seem's to work.

I've add a 3rd part on my test page.

Offline

#3 2009-06-30 17:24:06

gkalinec
New member
Registered: 2007-08-22
Posts: 4

Re: Xinha editor in a JQuery Dialog

I've been looking for this everywhere!

Thank you

German Kalinec

Offline

Board footer

Powered by FluxBB