Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRe-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/33670/#msg_33670
job! I also found the handy Rich Text Editor plug-in component which I
managed to link to and re-use in my RCP application on Windows. Can
this Rich Text Editor plugin be used on a Mac or is it OS dependent? If
not, what needs to be done to get it to work on Mac OS X? If feasible I
might help.
PB]]>h10550712007-06-22T17:08:00-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579345/#msg_579345
> Hi, I've just discovered the EPF project and the Composer tool. Nice
> job! I also found the handy Rich Text Editor plug-in component which I
> managed to link to and re-use in my RCP application on Windows. Can
> this Rich Text Editor plugin be used on a Mac or is it OS dependent? If
> not, what needs to be done to get it to work on Mac OS X? If feasible I
> might help.
>
> PB
I tried it on a Mac. It doesn't barf or crash, but formatting does not
work.
PB]]>h10550712007-06-26T14:10:52-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/33891/#msg_33891
> Hi, I've just discovered the EPF project and the Composer tool. Nice
> job! I also found the handy Rich Text Editor plug-in component which I
> managed to link to and re-use in my RCP application on Windows. Can
> this Rich Text Editor plugin be used on a Mac or is it OS dependent? If
> not, what needs to be done to get it to work on Mac OS X? If feasible I
> might help.
>
> PB
I tried it on a Mac. It doesn't barf or crash, but formatting does not
work.
PB]]>h10550712007-06-26T14:10:52-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/34378/#msg_34378
Sorry, we currently do not support Macs and have not tested it in that
environment, yet.
Peter.
"Phillip Beauvoir" <p.beauvoir@dadabeatnik.com> wrote in message
news:f5r6oe$efr$1@build.eclipse.org...
> Phillip Beauvoir wrote:
>> Hi, I've just discovered the EPF project and the Composer tool. Nice
>> job! I also found the handy Rich Text Editor plug-in component which I
>> managed to link to and re-use in my RCP application on Windows. Can this
>> Rich Text Editor plugin be used on a Mac or is it OS dependent? If not,
>> what needs to be done to get it to work on Mac OS X? If feasible I might
>> help.
>>
>> PB
>
> I tried it on a Mac. It doesn't barf or crash, but formatting does not
> work.
>
> PB]]>Peter Haumer2007-07-06T20:50:32-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579702/#msg_579702
Sorry, we currently do not support Macs and have not tested it in that
environment, yet.
Peter.
"Phillip Beauvoir" <p.beauvoir@dadabeatnik.com> wrote in message
news:f5r6oe$efr$1@build.eclipse.org...
> Phillip Beauvoir wrote:
>> Hi, I've just discovered the EPF project and the Composer tool. Nice
>> job! I also found the handy Rich Text Editor plug-in component which I
>> managed to link to and re-use in my RCP application on Windows. Can this
>> Rich Text Editor plugin be used on a Mac or is it OS dependent? If not,
>> what needs to be done to get it to work on Mac OS X? If feasible I might
>> help.
>>
>> PB
>
> I tried it on a Mac. It doesn't barf or crash, but formatting does not
> work.
>
> PB]]>Peter Haumer2007-07-06T20:50:32-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579788/#msg_579788
> Mac? Isn't that a telephone? :-)
>
> Sorry, we currently do not support Macs and have not tested it in that
> environment, yet.
>
> Peter.
>
I realise that. I'm trying to get it to work on a Mac. What I need is
a better understanding of how this Rich Text Editor is working. Looks
like some JavaScript calls to the Browser component, Safari on a Mac, I
reckon. I'm trying to figure out why these calls don't do anything on a
Mac. I reckon I'll get there in the end, but it would be quicker with
some help and advice.]]>h10550712007-07-07T12:57:37-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/34512/#msg_34512
> Mac? Isn't that a telephone? :-)
>
> Sorry, we currently do not support Macs and have not tested it in that
> environment, yet.
>
> Peter.
>
I realise that. I'm trying to get it to work on a Mac. What I need is
a better understanding of how this Rich Text Editor is working. Looks
like some JavaScript calls to the Browser component, Safari on a Mac, I
reckon. I'm trying to figure out why these calls don't do anything on a
Mac. I reckon I'll get there in the end, but it would be quicker with
some help and advice.]]>h10550712007-07-07T12:57:37-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579859/#msg_579859
this yet. So the question needs to be answered by the rest of the community.
As you might have see already, the rte.js file is the collection of scripts
realizing the editor against the IE control.
Peter.
"Phillip Beauvoir" <p.beauvoir@dadabeatnik.com> wrote in message
news:f6o2jc$nc0$1@build.eclipse.org...
> Peter Haumer wrote:
>> Mac? Isn't that a telephone? :-)
>>
>> Sorry, we currently do not support Macs and have not tested it in that
>> environment, yet.
>>
>> Peter.
>>
>
> I realise that. I'm trying to get it to work on a Mac. What I need is a
> better understanding of how this Rich Text Editor is working. Looks like
> some JavaScript calls to the Browser component, Safari on a Mac, I reckon.
> I'm trying to figure out why these calls don't do anything on a Mac. I
> reckon I'll get there in the end, but it would be quicker with some help
> and advice.]]>Peter Haumer2007-07-08T21:14:52-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/34612/#msg_34612
this yet. So the question needs to be answered by the rest of the community.
As you might have see already, the rte.js file is the collection of scripts
realizing the editor against the IE control.
Peter.
"Phillip Beauvoir" <p.beauvoir@dadabeatnik.com> wrote in message
news:f6o2jc$nc0$1@build.eclipse.org...
> Peter Haumer wrote:
>> Mac? Isn't that a telephone? :-)
>>
>> Sorry, we currently do not support Macs and have not tested it in that
>> environment, yet.
>>
>> Peter.
>>
>
> I realise that. I'm trying to get it to work on a Mac. What I need is a
> better understanding of how this Rich Text Editor is working. Looks like
> some JavaScript calls to the Browser component, Safari on a Mac, I reckon.
> I'm trying to figure out why these calls don't do anything on a Mac. I
> reckon I'll get there in the end, but it would be quicker with some help
> and advice.]]>Peter Haumer2007-07-08T21:14:52-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579874/#msg_579874
>> environment, yet.
>>
>>
>
> I realise that. I'm trying to get it to work on a Mac. What I need is
> a better understanding of how this Rich Text Editor is working. Looks
> like some JavaScript calls to the Browser component, Safari on a Mac, I
> reckon. I'm trying to figure out why these calls don't do anything on a
> Mac. I reckon I'll get there in the end, but it would be quicker with
> some help and advice.
You may want to check out the following rich text editor which is
supposed to work in all browser versions:
It might help give you some guidance on why the EPF rich text editor
isn't working on Safari.
Dave]]>David Carver2007-07-09T05:30:18-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/34645/#msg_34645
>> environment, yet.
>>
>>
>
> I realise that. I'm trying to get it to work on a Mac. What I need is
> a better understanding of how this Rich Text Editor is working. Looks
> like some JavaScript calls to the Browser component, Safari on a Mac, I
> reckon. I'm trying to figure out why these calls don't do anything on a
> Mac. I reckon I'll get there in the end, but it would be quicker with
> some help and advice.
You may want to check out the following rich text editor which is
supposed to work in all browser versions:
It might help give you some guidance on why the EPF rich text editor
isn't working on Safari.
Dave]]>David Carver2007-07-09T05:30:18-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579888/#msg_579888
>>> Sorry, we currently do not support Macs and have not tested it in
>>> that environment, yet.
>>>
>>>
>>
>> I realise that. I'm trying to get it to work on a Mac. What I need
>> is a better understanding of how this Rich Text Editor is working.
>> Looks like some JavaScript calls to the Browser component, Safari on a
>> Mac, I reckon. I'm trying to figure out why these calls don't do
>> anything on a Mac. I reckon I'll get there in the end, but it would
>> be quicker with some help and advice.
>
> You may want to check out the following rich text editor which is
> supposed to work in all browser versions:
>
> http://koivi.com/WYSIWYG-Editor/
>
> It might help give you some guidance on why the EPF rich text editor
> isn't working on Safari.
>
> Dave
>
That's a great link. Many thanks.]]>h10550712007-07-09T14:27:37-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/34679/#msg_34679
>>> Sorry, we currently do not support Macs and have not tested it in
>>> that environment, yet.
>>>
>>>
>>
>> I realise that. I'm trying to get it to work on a Mac. What I need
>> is a better understanding of how this Rich Text Editor is working.
>> Looks like some JavaScript calls to the Browser component, Safari on a
>> Mac, I reckon. I'm trying to figure out why these calls don't do
>> anything on a Mac. I reckon I'll get there in the end, but it would
>> be quicker with some help and advice.
>
> You may want to check out the following rich text editor which is
> supposed to work in all browser versions:
>
> http://koivi.com/WYSIWYG-Editor/
>
> It might help give you some guidance on why the EPF rich text editor
> isn't working on Safari.
>
> Dave
>
That's a great link. Many thanks.]]>h10550712007-07-09T14:27:37-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/579907/#msg_579907
> I see. I just wanted to say that most likely no one in our team has tried
> this yet. So the question needs to be answered by the rest of the community.
>
> As you might have see already, the rte.js file is the collection of scripts
> realizing the editor against the IE control.
>
> Peter.
>
>
> "Phillip Beauvoir" <p.beauvoir@dadabeatnik.com> wrote in message
> news:f6o2jc$nc0$1@build.eclipse.org...
>> Peter Haumer wrote:
>>> Mac? Isn't that a telephone? :-)
>>>
>>> Sorry, we currently do not support Macs and have not tested it in that
>>> environment, yet.
>>>
>>> Peter.
>>>
>> I realise that. I'm trying to get it to work on a Mac. What I need is a
>> better understanding of how this Rich Text Editor is working. Looks like
>> some JavaScript calls to the Browser component, Safari on a Mac, I reckon.
>> I'm trying to figure out why these calls don't do anything on a Mac. I
>> reckon I'll get there in the end, but it would be quicker with some help
>> and advice.
>
>
Thanks for the info. I'll carry on working on it. This is what I've
got so far:
I've extrapolated the following bundles that are needed for the RTE
(version 1.2) to work in a RCP application:
I have a RichTextEditor class instantiated in an Editor View together
with a populated RichTextToolBar. This all works fine on Windows XP and
Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
On a Mac you can type plain text into the wysiwyg tab but the toolbar
buttons/commands do nothing. You can type raw HTML code into the HTML
window and it is rendered properly when switched to the other tab.
So it seems that it all kind of works on a Mac, if we could iron out a
few wrinkles.]]>h10550712007-07-09T14:46:17-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/34713/#msg_34713
> I see. I just wanted to say that most likely no one in our team has tried
> this yet. So the question needs to be answered by the rest of the community.
>
> As you might have see already, the rte.js file is the collection of scripts
> realizing the editor against the IE control.
>
> Peter.
>
>
> "Phillip Beauvoir" <p.beauvoir@dadabeatnik.com> wrote in message
> news:f6o2jc$nc0$1@build.eclipse.org...
>> Peter Haumer wrote:
>>> Mac? Isn't that a telephone? :-)
>>>
>>> Sorry, we currently do not support Macs and have not tested it in that
>>> environment, yet.
>>>
>>> Peter.
>>>
>> I realise that. I'm trying to get it to work on a Mac. What I need is a
>> better understanding of how this Rich Text Editor is working. Looks like
>> some JavaScript calls to the Browser component, Safari on a Mac, I reckon.
>> I'm trying to figure out why these calls don't do anything on a Mac. I
>> reckon I'll get there in the end, but it would be quicker with some help
>> and advice.
>
>
Thanks for the info. I'll carry on working on it. This is what I've
got so far:
I've extrapolated the following bundles that are needed for the RTE
(version 1.2) to work in a RCP application:
I have a RichTextEditor class instantiated in an Editor View together
with a populated RichTextToolBar. This all works fine on Windows XP and
Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
On a Mac you can type plain text into the wysiwyg tab but the toolbar
buttons/commands do nothing. You can type raw HTML code into the HTML
window and it is rendered properly when switched to the other tab.
So it seems that it all kind of works on a Mac, if we could iron out a
few wrinkles.]]>h10550712007-07-09T14:46:17-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/580130/#msg_580130
>>> Sorry, we currently do not support Macs and have not tested it in
>>> that environment, yet.
>>>
>>>
>>
>> I realise that. I'm trying to get it to work on a Mac. What I need
>> is a better understanding of how this Rich Text Editor is working.
>> Looks like some JavaScript calls to the Browser component, Safari on a
>> Mac, I reckon. I'm trying to figure out why these calls don't do
>> anything on a Mac. I reckon I'll get there in the end, but it would
>> be quicker with some help and advice.
>
> You may want to check out the following rich text editor which is
> supposed to work in all browser versions:
>
> http://koivi.com/WYSIWYG-Editor/
>
> It might help give you some guidance on why the EPF rich text editor
> isn't working on Safari.
>
> Dave
>]]>h10550712007-07-13T19:05:31-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/35019/#msg_35019
>>> Sorry, we currently do not support Macs and have not tested it in
>>> that environment, yet.
>>>
>>>
>>
>> I realise that. I'm trying to get it to work on a Mac. What I need
>> is a better understanding of how this Rich Text Editor is working.
>> Looks like some JavaScript calls to the Browser component, Safari on a
>> Mac, I reckon. I'm trying to figure out why these calls don't do
>> anything on a Mac. I reckon I'll get there in the end, but it would
>> be quicker with some help and advice.
>
> You may want to check out the following rich text editor which is
> supposed to work in all browser versions:
>
> http://koivi.com/WYSIWYG-Editor/
>
> It might help give you some guidance on why the EPF rich text editor
> isn't working on Safari.
>
> Dave
>]]>h10550712007-07-13T19:05:31-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/584361/#msg_584361
> I've extrapolated the following bundles that are needed for the RTE
> (version 1.2) to work in a RCP application:
>
> org.eclipse.epf.common
> org.eclipse.epf.richtext
> org.eclipse.epf.ui
>
> I have a RichTextEditor class instantiated in an Editor View together
> with a populated RichTextToolBar. This all works fine on Windows XP and
> Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
Can you share the details of how you implemented RichTextEditor in a
non-EPF application? I'm in the process of doing so and would like to
hear any lessons that were learned by someone who has already been down
this path.
Thanks,
Eric]]>Eric Rizzo2007-10-08T20:37:01-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/42934/#msg_42934
Originally posted by: eclipse6.rizzoweb.com
Phillip Beauvoir wrote:
> I've extrapolated the following bundles that are needed for the RTE
> (version 1.2) to work in a RCP application:
>
> org.eclipse.epf.common
> org.eclipse.epf.richtext
> org.eclipse.epf.ui
>
> I have a RichTextEditor class instantiated in an Editor View together
> with a populated RichTextToolBar. This all works fine on Windows XP and
> Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
Can you share the details of how you implemented RichTextEditor in a
non-EPF application? I'm in the process of doing so and would like to
hear any lessons that were learned by someone who has already been down
this path.
Thanks,
Eric]]>2007-10-08T20:37:01-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/584376/#msg_584376
> I've extrapolated the following bundles that are needed for the RTE
> (version 1.2) to work in a RCP application:
>
> org.eclipse.epf.common
> org.eclipse.epf.richtext
> org.eclipse.epf.ui
>
> I have a RichTextEditor class instantiated in an Editor View together
> with a populated RichTextToolBar. This all works fine on Windows XP and
> Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
Can you share the details of how you implemented RichTextEditor in a
non-EPF application? I'm in the process of doing so and would like to
hear any lessons that were learned by someone who has already been down
this path.
Thanks,
Eric]]>Eric Rizzo2007-10-08T20:37:24-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/42965/#msg_42965
Originally posted by: eclipse6.rizzoweb.com
Phillip Beauvoir wrote:
> I've extrapolated the following bundles that are needed for the RTE
> (version 1.2) to work in a RCP application:
>
> org.eclipse.epf.common
> org.eclipse.epf.richtext
> org.eclipse.epf.ui
>
> I have a RichTextEditor class instantiated in an Editor View together
> with a populated RichTextToolBar. This all works fine on Windows XP and
> Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
Can you share the details of how you implemented RichTextEditor in a
non-EPF application? I'm in the process of doing so and would like to
hear any lessons that were learned by someone who has already been down
this path.
Thanks,
Eric]]>2007-10-08T20:37:24-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/584387/#msg_584387
> Phillip Beauvoir wrote:
>> I've extrapolated the following bundles that are needed for the RTE
>> (version 1.2) to work in a RCP application:
>>
>> org.eclipse.epf.common
>> org.eclipse.epf.richtext
>> org.eclipse.epf.ui
>>
>> I have a RichTextEditor class instantiated in an Editor View together
>> with a populated RichTextToolBar. This all works fine on Windows XP
>> and Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
>
> Can you share the details of how you implemented RichTextEditor in a
> non-EPF application? I'm in the process of doing so and would like to
> hear any lessons that were learned by someone who has already been down
> this path.
>
> Thanks,
> Eric
Hi, yes:
For a start it only works on Windows and Linux, the Mac is going to need
some Safari-specific voodoo added to the rte.js and rendering files in
the rte folder.
PB]]>h10550712007-10-08T20:53:27-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/42996/#msg_42996
> Phillip Beauvoir wrote:
>> I've extrapolated the following bundles that are needed for the RTE
>> (version 1.2) to work in a RCP application:
>>
>> org.eclipse.epf.common
>> org.eclipse.epf.richtext
>> org.eclipse.epf.ui
>>
>> I have a RichTextEditor class instantiated in an Editor View together
>> with a populated RichTextToolBar. This all works fine on Windows XP
>> and Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
>
> Can you share the details of how you implemented RichTextEditor in a
> non-EPF application? I'm in the process of doing so and would like to
> hear any lessons that were learned by someone who has already been down
> this path.
>
> Thanks,
> Eric
Hi, yes:
For a start it only works on Windows and Linux, the Mac is going to need
some Safari-specific voodoo added to the rte.js and rendering files in
the rte folder.
PB]]>h10550712007-10-08T20:53:27-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/585832/#msg_585832
Originally posted by: yannick.lizzi.silogic.fr
Phillip Beauvoir a écrit :
> Eric Rizzo wrote:
>> Phillip Beauvoir wrote:
>>> I've extrapolated the following bundles that are needed for the RTE
>>> (version 1.2) to work in a RCP application:
>>>
>>> org.eclipse.epf.common
>>> org.eclipse.epf.richtext
>>> org.eclipse.epf.ui
>>>
>>> I have a RichTextEditor class instantiated in an Editor View together
>>> with a populated RichTextToolBar. This all works fine on Windows XP
>>> and Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
>>
>> Can you share the details of how you implemented RichTextEditor in a
>> non-EPF application? I'm in the process of doing so and would like to
>> hear any lessons that were learned by someone who has already been
>> down this path.
>>
>> Thanks,
>> Eric
>
> Hi, yes:
>
> For a start it only works on Windows and Linux, the Mac is going to need
> some Safari-specific voodoo added to the rte.js and rendering files in
> the rte folder.
>
> The plug-in I put together is here in CVS:
>
> Host: tencompetence.cvs.sourceforge.net
> Path: /cvsroot/tencompetence
> Module: rte/org.eclipse.epf.richtext
>
> I then instantiate a RTE control thus:
>
> class RTE
> extends RichTextEditor
> {
>
> public RTE(Composite parent, int style, IEditorSite editorSite,
> String basePath) {
> super(parent, style, editorSite, basePath);
> }
>
> public RTE(Composite parent, int style, IEditorSite editorSite) {
> super(parent, style, editorSite);
> }
>
> @Override
> public void fillToolBar(IRichTextToolBar toolBar) {
> toolBar.addAction(new FontStyleAction(this));
> toolBar.addAction(new FontNameAction(this));
> toolBar.addAction(new FontSizeAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new CutAction(this));
> toolBar.addAction(new CopyAction(this));
> toolBar.addAction(new PasteAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new ClearContentAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new BoldAction(this));
> toolBar.addAction(new ItalicAction(this));
> toolBar.addAction(new UnderlineAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new SubscriptAction(this));
> toolBar.addAction(new SuperscriptAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new TidyActionGroup(this));
> toolBar.addSeparator();
> toolBar.addAction(new AddOrderedListAction(this));
> toolBar.addAction(new AddUnorderedListAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new OutdentAction(this));
> toolBar.addAction(new IndentAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new FindReplaceAction(this) {
> @Override
> public void execute(IRichText richText) {
> richText.getFindReplaceAction().execute(richText);
> }
> });
> toolBar.addSeparator();
> toolBar.addAction(new AddLinkAction(this));
> toolBar.addAction(new AddImageAction(this));
> toolBar.addAction(new AddTableAction(this));
> }
>
> }
>
> And then add it to an EditorPart.
>
> PB
Hi all,
You may be interested to know that the RichTextEditor seems to work now
with the new the version of Safari (3.0).
I'm also doing an RCP application that reuses the RichTextEditor. The
buttons now works in the wysiwyg tab.
Best regards
Yannick]]>2007-12-05T09:00:27-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/46307/#msg_46307
Originally posted by: yannick.lizzi.silogic.fr
Phillip Beauvoir a écrit :
> Eric Rizzo wrote:
>> Phillip Beauvoir wrote:
>>> I've extrapolated the following bundles that are needed for the RTE
>>> (version 1.2) to work in a RCP application:
>>>
>>> org.eclipse.epf.common
>>> org.eclipse.epf.richtext
>>> org.eclipse.epf.ui
>>>
>>> I have a RichTextEditor class instantiated in an Editor View together
>>> with a populated RichTextToolBar. This all works fine on Windows XP
>>> and Ubuntu 7 (apart from a bug I noticed on the Toolbar layout).
>>
>> Can you share the details of how you implemented RichTextEditor in a
>> non-EPF application? I'm in the process of doing so and would like to
>> hear any lessons that were learned by someone who has already been
>> down this path.
>>
>> Thanks,
>> Eric
>
> Hi, yes:
>
> For a start it only works on Windows and Linux, the Mac is going to need
> some Safari-specific voodoo added to the rte.js and rendering files in
> the rte folder.
>
> The plug-in I put together is here in CVS:
>
> Host: tencompetence.cvs.sourceforge.net
> Path: /cvsroot/tencompetence
> Module: rte/org.eclipse.epf.richtext
>
> I then instantiate a RTE control thus:
>
> class RTE
> extends RichTextEditor
> {
>
> public RTE(Composite parent, int style, IEditorSite editorSite,
> String basePath) {
> super(parent, style, editorSite, basePath);
> }
>
> public RTE(Composite parent, int style, IEditorSite editorSite) {
> super(parent, style, editorSite);
> }
>
> @Override
> public void fillToolBar(IRichTextToolBar toolBar) {
> toolBar.addAction(new FontStyleAction(this));
> toolBar.addAction(new FontNameAction(this));
> toolBar.addAction(new FontSizeAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new CutAction(this));
> toolBar.addAction(new CopyAction(this));
> toolBar.addAction(new PasteAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new ClearContentAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new BoldAction(this));
> toolBar.addAction(new ItalicAction(this));
> toolBar.addAction(new UnderlineAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new SubscriptAction(this));
> toolBar.addAction(new SuperscriptAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new TidyActionGroup(this));
> toolBar.addSeparator();
> toolBar.addAction(new AddOrderedListAction(this));
> toolBar.addAction(new AddUnorderedListAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new OutdentAction(this));
> toolBar.addAction(new IndentAction(this));
> toolBar.addSeparator();
> toolBar.addAction(new FindReplaceAction(this) {
> @Override
> public void execute(IRichText richText) {
> richText.getFindReplaceAction().execute(richText);
> }
> });
> toolBar.addSeparator();
> toolBar.addAction(new AddLinkAction(this));
> toolBar.addAction(new AddImageAction(this));
> toolBar.addAction(new AddTableAction(this));
> }
>
> }
>
> And then add it to an EditorPart.
>
> PB
Hi all,
You may be interested to know that the RichTextEditor seems to work now
with the new the version of Safari (3.0).
I'm also doing an RCP application that reuses the RichTextEditor. The
buttons now works in the wysiwyg tab.
Best regards
Yannick]]>2007-12-05T09:00:27-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/46337/#msg_46337
Originally posted by: eclipse-news.rizzoweb.com
Yannick Lizzi wrote:
>
> Hi all,
>
> You may be interested to know that the RichTextEditor seems to work now
> with the new the version of Safari (3.0).
> I'm also doing an RCP application that reuses the RichTextEditor. The
> buttons now works in the wysiwyg tab.
Eric]]>2007-12-05T14:27:38-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/585848/#msg_585848
>
> Hi all,
>
> You may be interested to know that the RichTextEditor seems to work now
> with the new the version of Safari (3.0).
> I'm also doing an RCP application that reuses the RichTextEditor. The
> buttons now works in the wysiwyg tab.
Eric]]>Eric Rizzo2007-12-05T14:27:38-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/47888/#msg_47888
Also, save and close key binding doesn't work in the editor.
(Of cource, it works fine on Windows)
There can be alternative approach. Use firefox instead of Safari.
Rich text editor uses platform specific web browser instance.
new Borwser(parent, SWT.NONE)
now eclipse 3.3 support firefox everywhere.
new Browser(parent, SWT.MOZILLA)
Unfortunately, when I change its style, my eclipse app. crashes caused by
jni call (3.4M4) or unknow problem (3.3.1.1). SWT mozilla example works
fine ... If SWT fix this unstable behavior, we can use rich text without
pain.
Yes, that is only my hope. But, there is an alternative approach.
1) Support safari on mac
2) Or, support mozilla everywhere]]>Sung Ahn Kim2008-02-10T01:04:22-00:00Re: Re-use Rich Text Editor component on Mac?
https://www.eclipse.org/forums/index.php/mv/msg/10867/588395/#msg_588395
Also, save and close key binding doesn't work in the editor.
(Of cource, it works fine on Windows)
There can be alternative approach. Use firefox instead of Safari.
Rich text editor uses platform specific web browser instance.
new Borwser(parent, SWT.NONE)
now eclipse 3.3 support firefox everywhere.
new Browser(parent, SWT.MOZILLA)
Unfortunately, when I change its style, my eclipse app. crashes caused by
jni call (3.4M4) or unknow problem (3.3.1.1). SWT mozilla example works
fine ... If SWT fix this unstable behavior, we can use rich text without
pain.
Yes, that is only my hope. But, there is an alternative approach.
1) Support safari on mac
2) Or, support mozilla everywhere]]>Sung Ahn Kim2008-02-10T01:04:22-00:00