TinyMCE integration / migration to YUI 3?

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Re: Re: TinyMCE integration / migration to YUI 3?

Erik Bruchez
Administrator
I added this extension:

https://github.com/orbeon/orbeon-forms/commit/235d0e6cb77b0f293b836ee3f3b3b37e68450248

-Erik

On Thu, Sep 22, 2011 at 10:12 AM, SD <[hidden email]> wrote:

> Thanks David. It worked !!!
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/TinyMCE-integration-migration-to-YUI-3-tp3320637p3834060.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
SD
Reply | Threaded
Open this post in threaded view
|

Re: Re: TinyMCE integration / migration to YUI 3?

SD
This post was updated on .
In reply to this post by fl.schmitt(ops-users)
Hi Florian,

For your sandbox example, I observed that if I make any changes to the content in the RTE and press the submit button the changes get reflected in the textarea. Now if i go and edit or make changes in the textarea the same is not reflected in the RTE editor.

Any clue how to refresh the RTE.

Here is the updated sandbox code xbl-tinymce.xhtml

Thanks
--SD
Reply | Threaded
Open this post in threaded view
|

Re: Re: TinyMCE integration / migration to YUI 3?

Alessandro  Vernet
Administrator
In reply to this post by fl.schmitt(ops-users)
Hi Florian & all,

Orbeon Forms now comes with a TinyMCE component, out of the box, which
is based on your contribution. So, thank you!

http://blog.orbeon.com/2012/02/new-tinymce-rich-text-editor-with-ipad.html

Alex

On Tue, Mar 8, 2011 at 8:24 AM, Florian Schmitt
<[hidden email]> wrote:

> Alex,
>
>> Maybe the way to go would be to create an XBL component that
>>  encapsulates the FCK editor or TinyMCE, and if you are willing to
>>  share it back with the community, it could be useful to others like
>>  you who are not well served by YUI 2's RTE.
>
> using the Wiki documentation and the other XBL examples, i've managed to
> create a basically working XBL component. It encapsulates the current
> TinyMCE code (3.3.9.3) and allows for custom configuration the same way
> as it's possible currently with the YUI RTE. I've added a zip containing
> the xbl together with a sandbox XHTML file that "showcases" two TinyMCE
> editor instances, one with my default config as defined in the XBL, the
> second with a custom config defined in the sandbox xhtml.
>
> It's mainly based on the currency xbl, as that xbl implements two input
> controls: a hidden xforms:input and a visible xhtml:input. For the
> TinyMCE XBL, i used a similar construct: a hidden xforms:input as "link"
> between the xforms model and the xbl, and a xhtml:div that gets
> transformed into a TinyMCE instance.
>
> It stills needs a lot of more work anyway, regarding i18n, performance
> improvements, testing and elaborated default configuration, but i hope
> it may serve as starting point for further work. I tested it only on
> Firefox, not with IE. It seems to work basically, accepting instance
> data (escaped html content) as initialization content and updating the
> instance with its changes.
>
> I've decided not to update the xforms instance automatically but only on
> user interaction (trigger: "commit changes"). So, there are still some
> severe issues:
> - If the user doesn't commit modifications to the xforms model, they get
> lost if the user navigates to an other page. TinyMCE offers
> functionality to check if editor content is modified ("dirty"), which
> should be implemented ind the XBL.
> - if the instance data is changed by any other means then the xbl, user
> modifications in the editor window may be lost and get overwritten by
> instance data.
>
> I would be glad about any other ideas and feedback how to improve this
> XBL. Although i will continue working on it, i've already put it into an
> "acme" namespace, indicating that "adopting" it into any other namespace
> is welcome :-).
>
> florian
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: Re: TinyMCE integration / migration to YUI 3?

David Lacy
This is great, thank you. I just tested this out and noticed that the directory "xbl/orbeon/tinymce/jscripts/tiny_mce/themes/advanced" is missing the htm files for controlling some advanced features. Was this an oversight?

David Lacy
Falvey Library Technology Services
Villanova University
library.villanova.edu
610-519-7361


> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: Wednesday, February 01, 2012 8:45 PM
> To: [hidden email]
> Subject: [ops-users] Re: Re: TinyMCE integration / migration to YUI 3?
>
> Hi Florian & all,
>
> Orbeon Forms now comes with a TinyMCE component, out of the box, which is
> based on your contribution. So, thank you!
>
> http://blog.orbeon.com/2012/02/new-tinymce-rich-text-editor-with-ipad.html
>
> Alex
>
> On Tue, Mar 8, 2011 at 8:24 AM, Florian Schmitt <ml-ops-users@florian-
> schmitt.net> wrote:
> > Alex,
> >
> >> Maybe the way to go would be to create an XBL component that
> >>  encapsulates the FCK editor or TinyMCE, and if you are willing to
> >>  share it back with the community, it could be useful to others like
> >>  you who are not well served by YUI 2's RTE.
> >
> > using the Wiki documentation and the other XBL examples, i've managed
> > to create a basically working XBL component. It encapsulates the
> > current TinyMCE code (3.3.9.3) and allows for custom configuration the
> > same way as it's possible currently with the YUI RTE. I've added a zip
> > containing the xbl together with a sandbox XHTML file that "showcases"
> > two TinyMCE editor instances, one with my default config as defined in
> > the XBL, the second with a custom config defined in the sandbox xhtml.
> >
> > It's mainly based on the currency xbl, as that xbl implements two
> > input
> > controls: a hidden xforms:input and a visible xhtml:input. For the
> > TinyMCE XBL, i used a similar construct: a hidden xforms:input as "link"
> > between the xforms model and the xbl, and a xhtml:div that gets
> > transformed into a TinyMCE instance.
> >
> > It stills needs a lot of more work anyway, regarding i18n, performance
> > improvements, testing and elaborated default configuration, but i hope
> > it may serve as starting point for further work. I tested it only on
> > Firefox, not with IE. It seems to work basically, accepting instance
> > data (escaped html content) as initialization content and updating the
> > instance with its changes.
> >
> > I've decided not to update the xforms instance automatically but only
> > on user interaction (trigger: "commit changes"). So, there are still
> > some severe issues:
> > - If the user doesn't commit modifications to the xforms model, they
> > get lost if the user navigates to an other page. TinyMCE offers
> > functionality to check if editor content is modified ("dirty"), which
> > should be implemented ind the XBL.
> > - if the instance data is changed by any other means then the xbl,
> > user modifications in the editor window may be lost and get
> > overwritten by instance data.
> >
> > I would be glad about any other ideas and feedback how to improve this
> > XBL. Although i will continue working on it, i've already put it into
> > an "acme" namespace, indicating that "adopting" it into any other
> > namespace is welcome :-).
> >
> > florian
> >
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing
> list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws
> >
>
>
>
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Re: TinyMCE integration / migration to YUI 3?

Alessandro  Vernet
Administrator
Hi Dave,

It is missing some .htm files? If that is the case, it is not
intentional, and as far as I know, this is a verbatim copy of the
TinyMCE 3.4.7 distribution. Or am I misunderstanding your question?

https://github.com/orbeon/orbeon-forms/tree/master/src/resources-packaged/xbl/orbeon/tinymce/jscripts/tiny_mce/themes/advanced

Alex

On Fri, Feb 3, 2012 at 8:13 AM, David Lacy <[hidden email]> wrote:

> This is great, thank you. I just tested this out and noticed that the directory "xbl/orbeon/tinymce/jscripts/tiny_mce/themes/advanced" is missing the htm files for controlling some advanced features. Was this an oversight?
>
> David Lacy
> Falvey Library Technology Services
> Villanova University
> library.villanova.edu
> 610-519-7361
>
>
>> -----Original Message-----
>> From: Alessandro Vernet [mailto:[hidden email]]
>> Sent: Wednesday, February 01, 2012 8:45 PM
>> To: [hidden email]
>> Subject: [ops-users] Re: Re: TinyMCE integration / migration to YUI 3?
>>
>> Hi Florian & all,
>>
>> Orbeon Forms now comes with a TinyMCE component, out of the box, which is
>> based on your contribution. So, thank you!
>>
>> http://blog.orbeon.com/2012/02/new-tinymce-rich-text-editor-with-ipad.html
>>
>> Alex
>>
>> On Tue, Mar 8, 2011 at 8:24 AM, Florian Schmitt <ml-ops-users@florian-
>> schmitt.net> wrote:
>> > Alex,
>> >
>> >> Maybe the way to go would be to create an XBL component that
>> >>  encapsulates the FCK editor or TinyMCE, and if you are willing to
>> >>  share it back with the community, it could be useful to others like
>> >>  you who are not well served by YUI 2's RTE.
>> >
>> > using the Wiki documentation and the other XBL examples, i've managed
>> > to create a basically working XBL component. It encapsulates the
>> > current TinyMCE code (3.3.9.3) and allows for custom configuration the
>> > same way as it's possible currently with the YUI RTE. I've added a zip
>> > containing the xbl together with a sandbox XHTML file that "showcases"
>> > two TinyMCE editor instances, one with my default config as defined in
>> > the XBL, the second with a custom config defined in the sandbox xhtml.
>> >
>> > It's mainly based on the currency xbl, as that xbl implements two
>> > input
>> > controls: a hidden xforms:input and a visible xhtml:input. For the
>> > TinyMCE XBL, i used a similar construct: a hidden xforms:input as "link"
>> > between the xforms model and the xbl, and a xhtml:div that gets
>> > transformed into a TinyMCE instance.
>> >
>> > It stills needs a lot of more work anyway, regarding i18n, performance
>> > improvements, testing and elaborated default configuration, but i hope
>> > it may serve as starting point for further work. I tested it only on
>> > Firefox, not with IE. It seems to work basically, accepting instance
>> > data (escaped html content) as initialization content and updating the
>> > instance with its changes.
>> >
>> > I've decided not to update the xforms instance automatically but only
>> > on user interaction (trigger: "commit changes"). So, there are still
>> > some severe issues:
>> > - If the user doesn't commit modifications to the xforms model, they
>> > get lost if the user navigates to an other page. TinyMCE offers
>> > functionality to check if editor content is modified ("dirty"), which
>> > should be implemented ind the XBL.
>> > - if the instance data is changed by any other means then the xbl,
>> > user modifications in the editor window may be lost and get
>> > overwritten by instance data.
>> >
>> > I would be glad about any other ideas and feedback how to improve this
>> > XBL. Although i will continue working on it, i've already put it into
>> > an "acme" namespace, indicating that "adopting" it into any other
>> > namespace is welcome :-).
>> >
>> > florian
>> >
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> > To unsubscribe: mailto:[hidden email]
>> > For general help: mailto:[hidden email]?subject=help
>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >
>>
>>
>>
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: Re: TinyMCE integration / migration to YUI 3?

David Lacy
Alex,

Yes, the files are on GitHub, but I do not think they are making it into the nightly war. I just uncompressed orbeon-resources-public.jar from last night's build and the htm files are not included.

Please excuse me if I am missing something.

David Lacy
Falvey Library Technology Services
Villanova University
library.villanova.edu
610-519-7361

> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: Wednesday, February 08, 2012 7:05 PM
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: Re: TinyMCE integration / migration to YUI 3?
>
> Hi Dave,
>
> It is missing some .htm files? If that is the case, it is not intentional, and as far as I
> know, this is a verbatim copy of the TinyMCE 3.4.7 distribution. Or am I
> misunderstanding your question?
>
> https://github.com/orbeon/orbeon-forms/tree/master/src/resources-
> packaged/xbl/orbeon/tinymce/jscripts/tiny_mce/themes/advanced
>
> Alex
>
> On Fri, Feb 3, 2012 at 8:13 AM, David Lacy <[hidden email]> wrote:
> > This is great, thank you. I just tested this out and noticed that the directory
> "xbl/orbeon/tinymce/jscripts/tiny_mce/themes/advanced" is missing the htm files
> for controlling some advanced features. Was this an oversight?
> >
> > David Lacy
> > Falvey Library Technology Services
> > Villanova University
> > library.villanova.edu
> > 610-519-7361
> >
> >
> >> -----Original Message-----
> >> From: Alessandro Vernet [mailto:[hidden email]]
> >> Sent: Wednesday, February 01, 2012 8:45 PM
> >> To: [hidden email]
> >> Subject: [ops-users] Re: Re: TinyMCE integration / migration to YUI 3?
> >>
> >> Hi Florian & all,
> >>
> >> Orbeon Forms now comes with a TinyMCE component, out of the box,
> >> which is based on your contribution. So, thank you!
> >>
> >> http://blog.orbeon.com/2012/02/new-tinymce-rich-text-editor-with-ipad
> >> .html
> >>
> >> Alex
> >>
> >> On Tue, Mar 8, 2011 at 8:24 AM, Florian Schmitt
> >> <ml-ops-users@florian- schmitt.net> wrote:
> >> > Alex,
> >> >
> >> >> Maybe the way to go would be to create an XBL component that
> >> >>  encapsulates the FCK editor or TinyMCE, and if you are willing to
> >> >>  share it back with the community, it could be useful to others
> >> >> like
> >> >>  you who are not well served by YUI 2's RTE.
> >> >
> >> > using the Wiki documentation and the other XBL examples, i've
> >> > managed to create a basically working XBL component. It
> >> > encapsulates the current TinyMCE code (3.3.9.3) and allows for
> >> > custom configuration the same way as it's possible currently with
> >> > the YUI RTE. I've added a zip containing the xbl together with a sandbox
> XHTML file that "showcases"
> >> > two TinyMCE editor instances, one with my default config as defined
> >> > in the XBL, the second with a custom config defined in the sandbox xhtml.
> >> >
> >> > It's mainly based on the currency xbl, as that xbl implements two
> >> > input
> >> > controls: a hidden xforms:input and a visible xhtml:input. For the
> >> > TinyMCE XBL, i used a similar construct: a hidden xforms:input as "link"
> >> > between the xforms model and the xbl, and a xhtml:div that gets
> >> > transformed into a TinyMCE instance.
> >> >
> >> > It stills needs a lot of more work anyway, regarding i18n,
> >> > performance improvements, testing and elaborated default
> >> > configuration, but i hope it may serve as starting point for
> >> > further work. I tested it only on Firefox, not with IE. It seems to
> >> > work basically, accepting instance data (escaped html content) as
> >> > initialization content and updating the instance with its changes.
> >> >
> >> > I've decided not to update the xforms instance automatically but
> >> > only on user interaction (trigger: "commit changes"). So, there are
> >> > still some severe issues:
> >> > - If the user doesn't commit modifications to the xforms model,
> >> > they get lost if the user navigates to an other page. TinyMCE
> >> > offers functionality to check if editor content is modified
> >> > ("dirty"), which should be implemented ind the XBL.
> >> > - if the instance data is changed by any other means then the xbl,
> >> > user modifications in the editor window may be lost and get
> >> > overwritten by instance data.
> >> >
> >> > I would be glad about any other ideas and feedback how to improve
> >> > this XBL. Although i will continue working on it, i've already put
> >> > it into an "acme" namespace, indicating that "adopting" it into any
> >> > other namespace is welcome :-).
> >> >
> >> > florian
> >> >
> >> >
> >> >
> >> > --
> >> > You receive this message as a subscriber of the [hidden email]
> >> > mailing
> >> list.
> >> > To unsubscribe: mailto:[hidden email]
> >> > For general help: mailto:[hidden email]?subject=help
> >> > OW2 mailing lists service home page: http://www.ow2.org/wws
> >> >
> >>
> >>
> >>
> >> --
> >> Follow Orbeon on Twitter: @orbeon
> >> Follow me on Twitter: @avernet
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email] mailing
> list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws
> >
>
>
>
> --
> Follow Orbeon on Twitter: @orbeon
> Follow me on Twitter: @avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: TinyMCE integration / migration to YUI 3?

David Lacy
Alex,

The problem stems from the build.xml file. I added entries to include .htm files in the jar-building sections and that solved it.

Thanks again for this!

David Lacy
Falvey Library Technology Services
Villanova University
library.villanova.edu
610-519-7361

> -----Original Message-----
> From: David Lacy [mailto:[hidden email]]
> Sent: Tuesday, February 14, 2012 9:48 AM
> To: [hidden email]
> Subject: [ops-users] RE: Re: RE: Re: Re: TinyMCE integration / migration to YUI 3?
>
> Alex,
>
> Yes, the files are on GitHub, but I do not think they are making it into the nightly
> war. I just uncompressed orbeon-resources-public.jar from last night's build and
> the htm files are not included.
>
> Please excuse me if I am missing something.
>
> David Lacy
> Falvey Library Technology Services
> Villanova University
> library.villanova.edu
> 610-519-7361
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
12