|
|
|
Re: TinyMCE integration [message #496754 is a reply to message #484079] |
Wed, 11 November 2009 04:45   |
Eclipse User |
|
|
|
Originally posted by: cheney_chen.i-len.com
Hi RAP team and George:
I used the TinyMCE plug-in in my RAP base application, it works well in
RAP 1.2 version. Then I update to RAP 1.3M2, because i want to the
design API to enhance the applicaton's look and feel, the TinyMCE
plug-in never works in RAP 1.3M2, when i open the view with the TinyMCE
widget, it will throws the js erorr in client browser. is the qooxdoo
version already updated in RAP 1.3 version? I can't find the update
statement in RAP 1.3 plan.
Because I an a java developer, so i don't well know qooxdoo, So if
someone can tell me how to modify the TinyMCE to run in RAP 1.3 version.
Any help is much appreciated. Thanks in advance!
Best Regards,
Cheney
Georgi Yonchev wrote:
> Hi all,
>
> I;m attaching the source here, because my server will be down for a
> unknown period of time ...
>
> Cheers,
> George
>
> Georgi Yonchev wrote:
>> Hi all,
>> check this out. tinyMCE widget.
>>
>>> http://blog.yonchev.org/2009/06/14/eclipse-rap-tinymce-integ ration/
>>
>> Hope it would by helpful to someone.
>>
>> Greetings.
>> George
>
|
|
|
Re: TinyMCE integration [message #496837 is a reply to message #496754] |
Wed, 11 November 2009 09:12   |
Eclipse User |
|
|
|
Without any knowledge about your custom widget, we can't do much. But
one thing I could imagine is that you stumbled across the same problem
the GCCanvas suffers from.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=261355#c11 for a
possible solution.
Regards,
Ben
Cheney Chen wrote:
> Hi RAP team and George:
>
> I used the TinyMCE plug-in in my RAP base application, it works well in
> RAP 1.2 version. Then I update to RAP 1.3M2, because i want to the
> design API to enhance the applicaton's look and feel, the TinyMCE
> plug-in never works in RAP 1.3M2, when i open the view with the TinyMCE
> widget, it will throws the js erorr in client browser. is the qooxdoo
> version already updated in RAP 1.3 version? I can't find the update
> statement in RAP 1.3 plan.
>
> Because I an a java developer, so i don't well know qooxdoo, So if
> someone can tell me how to modify the TinyMCE to run in RAP 1.3 version.
>
> Any help is much appreciated. Thanks in advance!
>
> Best Regards,
> Cheney
>
>
>
> Georgi Yonchev wrote:
>> Hi all,
>>
>> I;m attaching the source here, because my server will be down for a
>> unknown period of time ...
>>
>> Cheers,
>> George
>>
>> Georgi Yonchev wrote:
>>> Hi all,
>>> check this out. tinyMCE widget.
>>>
>>>> http://blog.yonchev.org/2009/06/14/eclipse-rap-tinymce-integ ration/
>>> Hope it would by helpful to someone.
>>>
>>> Greetings.
>>> George
--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
|
|
|
Re: TinyMCE integration [message #497020 is a reply to message #496837] |
Thu, 12 November 2009 04:30   |
Eclipse User |
|
|
|
Originally posted by: cheney_chen.i-len.com
Hi Benjamin,
Thanks. Yes, The bug information you provided can help me to solve the
problem.
Best Regards,
Cheney
Benjamin Muskalla wrote:
> Without any knowledge about your custom widget, we can't do much. But
> one thing I could imagine is that you stumbled across the same problem
> the GCCanvas suffers from.
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=261355#c11 for a
> possible solution.
>
> Regards,
> Ben
>
> Cheney Chen wrote:
>> Hi RAP team and George:
>>
>> I used the TinyMCE plug-in in my RAP base application, it works well in
>> RAP 1.2 version. Then I update to RAP 1.3M2, because i want to the
>> design API to enhance the applicaton's look and feel, the TinyMCE
>> plug-in never works in RAP 1.3M2, when i open the view with the TinyMCE
>> widget, it will throws the js erorr in client browser. is the qooxdoo
>> version already updated in RAP 1.3 version? I can't find the update
>> statement in RAP 1.3 plan.
>>
>> Because I an a java developer, so i don't well know qooxdoo, So if
>> someone can tell me how to modify the TinyMCE to run in RAP 1.3 version.
>>
>> Any help is much appreciated. Thanks in advance!
>>
>> Best Regards,
>> Cheney
>>
>>
>>
>> Georgi Yonchev wrote:
>>> Hi all,
>>>
>>> I;m attaching the source here, because my server will be down for a
>>> unknown period of time ...
>>>
>>> Cheers,
>>> George
>>>
>>> Georgi Yonchev wrote:
>>>> Hi all,
>>>> check this out. tinyMCE widget.
>>>>
>>>>> http://blog.yonchev.org/2009/06/14/eclipse-rap-tinymce-integ ration/
>>>> Hope it would by helpful to someone.
>>>>
>>>> Greetings.
>>>> George
>
>
|
|
|
|
Re: TinyMCE integration [message #515979 is a reply to message #484079] |
Mon, 22 February 2010 01:50   |
Eclipse User |
|
|
|
Hi,
I got a little bit further (see the attached .zip):
the only important change I made comparing to the previous version I posted
(aside of modifying some System.out.println() and commenting out the
View.java) is to add "req.send();" in the listener on "appear" (TinyMCE.js):
this.addEventListener("appear", function() {
....
if( !org_eclipse_rap_rwt_EventUtil_suspend ) {
....
req.send();
}
....
}
This will cause the TinyMCELCA.readData() to run, but will reveal a
"strange"
effect (strange to me anyway :) ).
Steps to reproduce it:
1) start the application and type something in the TinyMCE widget - nothing
will happen yet
2) Press (for example) "Shift" + "left arrow" to mark/insert the text - in
this moment the TinyMCELCA.readData() will be called and further the
FormEditor (Editor.java) will be marked dirty (see the sysouts).
And now the strange behavior: if you look carefully to the FormEditor's tab
in the moment you press "Shift" + "left arrow", there where the dirty "*"
should be painted, you will observe that the tab is made a bit wider, to
make room for the "*", but, surprisingly, the "*" is not drawn.
To confirm this, if I try to close the editor, then a message comes, asking if I want to save: "'Editor' has been modified. Save changes?" So the editor is clearly marked dirty.
The same behavior was signaled by using the FCK-editor (an alternative to
TinyMCE) inside a RAP custom widget:
http://www.eclipse.org/forums/index.php?t=msg&th=158838& amp; amp;bookmark=58429&&opt=on&start=0&SQ=b5c9c7 21931a9dfd864513016b66f25e
So I think the problem is independent of which WYSIWYG editor is used, but
should be related to the fact the WYSIWYG editor runs inside an iFrame and
somehow the FormEditor does not get the change to re-layout on those events.
That is why I ask for help from RAP/Qooxdoo/JavaScript specialists.
[Updated on: Tue, 23 February 2010 06:11] by Moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07477 seconds