Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EPF » Re-use Rich Text Editor component on Mac?
Re-use Rich Text Editor component on Mac? [message #33670] Fri, 22 June 2007 17:08 Go to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #33891 is a reply to message #33670] Tue, 26 June 2007 14:10 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #34378 is a reply to message #33891] Fri, 06 July 2007 20:50 Go to previous messageGo to next message
Peter Haumer is currently offline Peter HaumerFriend
Messages: 228
Registered: July 2009
Senior Member
Mac? Isn't that a telephone? :-)

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
Re: Re-use Rich Text Editor component on Mac? [message #34512 is a reply to message #34378] Sat, 07 July 2007 12:57 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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.
Re: Re-use Rich Text Editor component on Mac? [message #34612 is a reply to message #34512] Sun, 08 July 2007 21:14 Go to previous messageGo to next message
Peter Haumer is currently offline Peter HaumerFriend
Messages: 228
Registered: July 2009
Senior Member
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.
Re: Re-use Rich Text Editor component on Mac? [message #34645 is a reply to message #34512] Mon, 09 July 2007 05:30 Go to previous messageGo to next message
David Carver is currently offline David CarverFriend
Messages: 174
Registered: July 2009
Senior Member
>> 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
Re: Re-use Rich Text Editor component on Mac? [message #34679 is a reply to message #34645] Mon, 09 July 2007 14:27 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
David Carver wrote:
>>> 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.
Re: Re-use Rich Text Editor component on Mac? [message #34713 is a reply to message #34612] Mon, 09 July 2007 14:46 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
Peter Haumer wrote:
> 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:

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).

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.
Re: Re-use Rich Text Editor component on Mac? [message #35019 is a reply to message #34645] Fri, 13 July 2007 19:05 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
David Carver wrote:
>>> 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
>
Re: Re-use Rich Text Editor component on Mac? [message #42934 is a reply to message #34713] Mon, 08 October 2007 20:37 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Re-use Rich Text Editor component on Mac? [message #42965 is a reply to message #34713] Mon, 08 October 2007 20:37 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Re-use Rich Text Editor component on Mac? [message #42996 is a reply to message #42965] Mon, 08 October 2007 20:53 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #46307 is a reply to message #42996] Wed, 05 December 2007 09:00 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Re-use Rich Text Editor component on Mac? [message #46337 is a reply to message #46307] Wed, 05 December 2007 14:27 Go to previous messageGo to next message
Eclipse UserFriend
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.

Yannick,
You might be interested in this Bug report which requests the RTE be
improved for consumability:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=209373

Feel free to vote for it and/or add comments.

Eric
Re: Re-use Rich Text Editor component on Mac? [message #47888 is a reply to message #46307] Sun, 10 February 2008 01:04 Go to previous message
Sung Ahn Kim is currently offline Sung Ahn KimFriend
Messages: 7
Registered: July 2009
Junior Member
Buttons work but the editor section fail to refresh its contents.

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
Re: Re-use Rich Text Editor component on Mac? [message #579345 is a reply to message #33670] Tue, 26 June 2007 14:10 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #579702 is a reply to message #33891] Fri, 06 July 2007 20:50 Go to previous message
Peter Haumer is currently offline Peter HaumerFriend
Messages: 228
Registered: July 2009
Senior Member
Mac? Isn't that a telephone? :-)

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
Re: Re-use Rich Text Editor component on Mac? [message #579788 is a reply to message #34378] Sat, 07 July 2007 12:57 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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.
Re: Re-use Rich Text Editor component on Mac? [message #579859 is a reply to message #34512] Sun, 08 July 2007 21:14 Go to previous message
Peter Haumer is currently offline Peter HaumerFriend
Messages: 228
Registered: July 2009
Senior Member
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.
Re: Re-use Rich Text Editor component on Mac? [message #579874 is a reply to message #34512] Mon, 09 July 2007 05:30 Go to previous message
David Carver is currently offline David CarverFriend
Messages: 174
Registered: July 2009
Senior Member
>> 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
Re: Re-use Rich Text Editor component on Mac? [message #579888 is a reply to message #34645] Mon, 09 July 2007 14:27 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
David Carver wrote:
>>> 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.
Re: Re-use Rich Text Editor component on Mac? [message #579907 is a reply to message #34612] Mon, 09 July 2007 14:46 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
Peter Haumer wrote:
> 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:

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).

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.
Re: Re-use Rich Text Editor component on Mac? [message #580130 is a reply to message #34645] Fri, 13 July 2007 19:05 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
David Carver wrote:
>>> 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
>
Re: Re-use Rich Text Editor component on Mac? [message #584361 is a reply to message #34713] Mon, 08 October 2007 20:37 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 2411
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #584376 is a reply to message #34713] Mon, 08 October 2007 20:37 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 2411
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #584387 is a reply to message #42965] Mon, 08 October 2007 20:53 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
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
Re: Re-use Rich Text Editor component on Mac? [message #585832 is a reply to message #42996] Wed, 05 December 2007 09:00 Go to previous message
Eclipse UserFriend
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
Re: Re-use Rich Text Editor component on Mac? [message #585848 is a reply to message #46307] Wed, 05 December 2007 14:27 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 2411
Registered: July 2009
Senior Member
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.

Yannick,
You might be interested in this Bug report which requests the RTE be
improved for consumability:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=209373

Feel free to vote for it and/or add comments.

Eric
Re: Re-use Rich Text Editor component on Mac? [message #588395 is a reply to message #46307] Sun, 10 February 2008 01:04 Go to previous message
Sung Ahn Kim is currently offline Sung Ahn KimFriend
Messages: 7
Registered: July 2009
Junior Member
Buttons work but the editor section fail to refresh its contents.

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
Previous Topic:Decision Flows
Next Topic:Replaces Variability
Goto Forum:
  


Current Time: Sat Dec 20 23:46:56 GMT 2014

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

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