Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Catalin Tileaga is currently offline Catalin TileagaFriend
Messages: 6
Registered: December 2009
Junior Member
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 Smile 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 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 Go to previous messageGo to next message
Catalin Tileaga is currently offline Catalin TileagaFriend
Messages: 6
Registered: December 2009
Junior Member
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 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 Go to previous messageGo to next message
Valer Roman is currently offline Valer RomanFriend
Messages: 36
Registered: July 2009
Member
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 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Valer Roman is currently offline Valer RomanFriend
Messages: 36
Registered: July 2009
Member
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 Go to previous message
Bogdan B. is currently offline Bogdan B.Friend
Messages: 50
Registered: July 2009
Member
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

Previous Topic:Write Image uploaded by Upload Widget to File
Next Topic:Use a software site location for RAP in a target platform
Goto Forum:
  


Current Time: Tue Apr 23 12:44:53 GMT 2024

Powered by FUDForum. Page generated in 0.04021 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top