Home » Eclipse Projects » Remote Application Platform (RAP) » Custom RichText Widget in an Editor, problem with markDirty()
Custom RichText Widget in an Editor, problem with markDirty() [message #501649] |
Thu, 03 December 2009 09:21  |
Eclipse User |
|
|
|
Hi,
I created a RichText custom widget (starting from FCKeditor) and I used it in a FormPart. I implemented also a ChangeListener that should mark the part dirty for every change in the Rich Text. Everything works, except the fact that the "*" on the editor title bar doesn't appear. It makes the title bar bigger but the text remains the same. I have another controls in the editor (TextField, ComboBox, etc.) and for this ones it works.
Have some one an idea? I thought first time that the problem is because the FCKeditor is builded in an IFrame, but I don't know how to prove it or how to correct it.
Thank you in advance,
Catalin Tileaga
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #501699 is a reply to message #501649] |
Thu, 03 December 2009 14:15   |
Eclipse User |
|
|
|
Hi Catalin,
is your ChangeEvent fired and your listeners notified when you change
something in the RichText custom widget?
Best,
Ivan
On 12/3/2009 11:21, Catalin Tileaga wrote:
> Hi,
>
> I created a RichText custom widget (starting from FCKeditor) and I
> used it in a FormPart. I implemented also a ChangeListener that should
> mark the part dirty for every change in the Rich Text. Everything
> works, except the fact that the "*" on the editor title bar doesn't
> appear. It makes the title bar bigger but the text remains the same. I
> have another controls in the editor (TextField, ComboBox, etc.) and
> for this ones it works.
> Have some one an idea? I thought first time that the problem is
> because the FCKeditor is builded in an IFrame, but I don't know how to
> prove it :) or how to correct it.
>
> Thank you in advance,
> Catalin Tileaga
>
>
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #501719 is a reply to message #501699] |
Thu, 03 December 2009 15:24   |
Eclipse User |
|
|
|
Hi Ivan,
yes, when I debug, the code goes without problems till markDirty. The editor is marked dirty. When I try to close the editor, it ask me if I want to save. It's only the graphical problem. The star (*) that show that the editor is dirty doesn't appear. And the problem appear only for the RichText Custom widget. For the other controls, it works.
Regards,
Catalin
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #501740 is a reply to message #501719] |
Thu, 03 December 2009 16:14   |
Eclipse User |
|
|
|
Hi Catalin,
sounds really strange that the space is allocated in the editor title
bar for the start ("*"), but actually it does not appear. Anyway,
without any code snippet or something to reproduce it I can't help you much.
Best,
Ivan
On 12/3/2009 17:24, Catalin Tileaga wrote:
> Hi Ivan,
>
> yes, when I debug, the code goes without problems till markDirty. The
> editor is marked dirty. When I try to close the editor, it ask me if I
> want to save. It's only the graphical problem. The star (*) that show
> that the editor is dirty doesn't appear. And the problem appear only
> for the RichText Custom widget. For the other controls, it works.
>
> Regards,
> Catalin
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #513244 is a reply to message #501649] |
Tue, 09 February 2010 13:44   |
Eclipse User |
|
|
|
Hi
It would be great if you could give the source for the FCKEditor
custom widget, since many have asked about a wysiwyg editor in RAP.
Thanks in advance,
Valer Roman
Catalin Tileaga wrote:
> Hi,
>
> I created a RichText custom widget (starting from FCKeditor) and I used
> it in a FormPart. I implemented also a ChangeListener that should mark
> the part dirty for every change in the Rich Text. Everything works,
> except the fact that the "*" on the editor title bar doesn't appear. It
> makes the title bar bigger but the text remains the same. I have another
> controls in the editor (TextField, ComboBox, etc.) and for this ones it
> works.
> Have some one an idea? I thought first time that the problem is because
> the FCKeditor is builded in an IFrame, but I don't know how to prove it
> :) or how to correct it.
>
> Thank you in advance,
> Catalin Tileaga
>
>
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #513349 is a reply to message #513244] |
Tue, 09 February 2010 19:55   |
Eclipse User |
|
|
|
Hi,
search for "TinyMCE integration" you find so the sources for TinyMCE
from Georgy Yonchev,
or look here: http://www.eclipse.org/forums/index.php?t=msg&goto=49702 0&
/message id #484079, but without attachment, attachment you can find
with newsgroup client
Best regards,
Nikolai
Valer Roman schrieb:
> Hi
>
> It would be great if you could give the source for the FCKEditor
> custom widget, since many have asked about a wysiwyg editor in RAP.
>
> Thanks in advance,
> Valer Roman
>
> Catalin Tileaga wrote:
>> Hi,
>>
>> I created a RichText custom widget (starting from FCKeditor) and I used
>> it in a FormPart. I implemented also a ChangeListener that should mark
>> the part dirty for every change in the Rich Text. Everything works,
>> except the fact that the "*" on the editor title bar doesn't appear. It
>> makes the title bar bigger but the text remains the same. I have another
>> controls in the editor (TextField, ComboBox, etc.) and for this ones it
>> works.
>> Have some one an idea? I thought first time that the problem is because
>> the FCKeditor is builded in an IFrame, but I don't know how to prove it
>> :) or how to correct it.
>>
>> Thank you in advance,
>> Catalin Tileaga
>>
>>
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #513363 is a reply to message #513349] |
Tue, 09 February 2010 20:54   |
Eclipse User |
|
|
|
Thanks, I'm trying it right now :)
Nikolai Raitsev wrote:
> Hi,
>
> search for "TinyMCE integration" you find so the sources for TinyMCE
> from Georgy Yonchev,
> or look here: http://www.eclipse.org/forums/index.php?t=msg&goto=49702 0&
> /message id #484079, but without attachment, attachment you can find
> with newsgroup client
>
> Best regards,
>
> Nikolai
>
> Valer Roman schrieb:
>> Hi
>>
>> It would be great if you could give the source for the FCKEditor
>> custom widget, since many have asked about a wysiwyg editor in RAP.
>>
>> Thanks in advance,
>> Valer Roman
>>
>> Catalin Tileaga wrote:
>>> Hi,
>>>
>>> I created a RichText custom widget (starting from FCKeditor) and I used
>>> it in a FormPart. I implemented also a ChangeListener that should mark
>>> the part dirty for every change in the Rich Text. Everything works,
>>> except the fact that the "*" on the editor title bar doesn't appear. It
>>> makes the title bar bigger but the text remains the same. I have another
>>> controls in the editor (TextField, ComboBox, etc.) and for this ones it
>>> works.
>>> Have some one an idea? I thought first time that the problem is because
>>> the FCKeditor is builded in an IFrame, but I don't know how to prove it
>>> :) or how to correct it.
>>>
>>> Thank you in advance,
>>> Catalin Tileaga
>>>
>>>
|
|
|
Re: Custom RichText Widget in an Editor, problem with markDirty() [message #515981 is a reply to message #501740] |
Mon, 22 February 2010 11:59  |
Eclipse User |
|
|
|
Hi Ivan,
I just got exactly the same behavior Catalin described on this thread, just not with FCK-editor, but with TinyMCE. I Already posted a complete code example on:
http://www.eclipse.org/forums/index.php?t=msg&goto=48407 9&#msg_515979
So I think the problem is not related to the used WYSIWYG editor, but with the fact that it tis running inside an iFrame and the FormEditor instance does not get the chance to re-layout. Unfortunately, my Qooxdoo/JavaScript knowledge is quite limited.
So I kindly ask you to take a look on this example and give me at least a hint.
Best regards,
Bogdan.
Ivan Furnadjiev wrote on Thu, 03 December 2009 11:14 | Hi Catalin,
sounds really strange that the space is allocated in the editor title
bar for the start ("*"), but actually it does not appear. Anyway,
without any code snippet or something to reproduce it I can't help you much.
Best,
Ivan
On 12/3/2009 17:24, Catalin Tileaga wrote:
> Hi Ivan,
>
> yes, when I debug, the code goes without problems till markDirty. The
> editor is marked dirty. When I try to close the editor, it ask me if I
> want to save. It's only the graphical problem. The star (*) that show
> that the editor is dirty doesn't appear. And the problem appear only
> for the RichText Custom widget. For the other controls, it works.
>
> Regards,
> Catalin
|
|
|
|
Goto Forum:
Current Time: Fri Feb 14 02:51:56 GMT 2025
Powered by FUDForum. Page generated in 0.05333 seconds
|