Hi all,
has anyone experience in modifying the yui rich text editor, especially the css applied to the edit area? The background is that i want to modify the yui RTE with a plugin and some css rules. The plugin works so far, and regarding the css, i found an example how to add a css file: http://blog.davglass.com/files/yui/editor30/ I would prefer not to load another css file, but to modify the editor maybe using the extracss property. But i didn't find a way to set the extracss outside of the instantiation code for the yui RTE. Is it possible to set rte's properties directly? 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 |
Administrator
|
In xforms.js, check the "init" function in ORBEON.widgets.RTE. You
could patch that code, as a start. -Erik On Dec 17, 2008, at 12:17 PM, Florian Schmitt wrote: > Hi all, > > has anyone experience in modifying the yui rich text editor, > especially > the css applied to the edit area? > > The background is that i want to modify the yui RTE with a plugin and > some css rules. The plugin works so far, and regarding the css, i > found > an example how to add a css file: > > http://blog.davglass.com/files/yui/editor30/ > > I would prefer not to load another css file, but to modify the editor > maybe using the extracss property. But i didn't find a way to set the > extracss outside of the instantiation code for the yui RTE. Is it > possible to set rte's properties directly? > > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
Erik,
thank you for your reply - but in the meantime i found that the yui RTE is no option for me at all (it doesn't support paragraph tags instead of br, there's no way to insert content as plain text - as far as is see). Would it be possible to include the newest version of the fckeditor in 3.7? There's v. 2.6.3 available, the nightly builds contain 2.3.1. florian |
Administrator
|
> thank you for your reply - but in the meantime i found that the yui
> RTE is > no option for me at all (it doesn't support paragraph tags instead > of br, > there's no way to insert content as plain text - as far as is see). > Would it > be possible to include the newest version of the fckeditor in 3.7? > There's > v. 2.6.3 available, the nightly builds contain 2.3.1. Sure, if you do the update and send a patch ;-) -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
Hi,
i used the FCK Editor as well and updated it to 2.5.3 i think. I asked if someone would be interested in that update, but noone answerd. But concerning my other post from today, i'm afraid, using fck at the moment leads to other problems, i.e. none working xforms:dialogs :-( I would like to use the FCK as well and maybe ould offer another update the next weeks to v. 2.6.3, but as long as the other problems are not solved, this is wasted time. Sorry, please let me know afap when problems are fixed and i would love to help with an fck update. In the meantime i could send you my updated FCK 2.5 Version if you like Florian Regards, Marcus Erik Bruchez schrieb: >> thank you for your reply - but in the meantime i found that the yui >> RTE is >> no option for me at all (it doesn't support paragraph tags instead of >> br, >> there's no way to insert content as plain text - as far as is see). >> Would it >> be possible to include the newest version of the fckeditor in 3.7? >> There's >> v. 2.6.3 available, the nightly builds contain 2.3.1. > > Sure, if you do the update and send a patch ;-) > > -Erik > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.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 |
Hi Marcus,
> i used the FCK Editor as well and updated it to 2.5.3 i think. > I asked if someone would be interested in that update, but noone answerd. maybe i missed your posting... but in any case, i had to update it myself because i use the fckeditor with a custom plugin, so i had to re-package the orbeon-resources.public.jar myself... > But concerning my other post from today, i'm afraid, using fck at the > moment leads to other problems, > i.e. none working xforms:dialogs :-( i've seen your posting regarding that problem - my own app is based on the 3.7.0beta1 actually, and with that beta, the dialogs are still working, i think. The last nightly build that i tested was from the mid of december, and IIRC the dialogs worked there, too. I will test a recent nightly as soon as possbile, that would really be an annoying bug IMHO. I don't know the reasons why the yui rte seems to be the preferred editor component - maybe it's more light-weight, but it (the yui rte) lacks a lot of features that are mandatory for me (support for paragraphs, for example). > In the meantime i could send you my updated FCK 2.5 Version if you like > Florian thanks a lot, but for my app, i have to adapt the jar for my needs anyway, so it wouldn't help me much. 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 |
Administrator
|
Florian,
On Jan 11, 2009, at 8:06 AM, Florian Schmitt wrote: > I don't know the reasons why the yui rte seems to be the > preferred editor component - maybe it's more light-weight, Because the FCK editor doesn't always play very well with YUI, and it is generally harder to work with than the rest of the YUI code (including lack of documentation, lack of support in the FCK forum, and more complicated code). > but it (the > yui rte) lacks a lot of features that are mandatory for me (support > for paragraphs, for example). Are you saying that the RTE is generating <br/><br/> instead of <p>? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.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 |
Administrator
|
In reply to this post by Marcus-2
Marcus,
On Jan 11, 2009, at 3:04 AM, Marcus wrote: > i used the FCK Editor as well and updated it to 2.5.3 i think. > I asked if someone would be interested in that update, but noone > answerd. > But concerning my other post from today, i'm afraid, using fck at > the moment leads to other problems, > i.e. none working xforms:dialogs :-( Funnily – yes, sometimes we can be easily amused – I am aware of some issue with the RTE in dialogs, but not of the FCK editor in dialogs. Could we see something different because you are using a different version of the FCK editor? Can you reproduce this with a nightly build on which you haven't upgraded the FCK editor? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.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 |
In reply to this post by Alessandro Vernet
Alessandro,
> Because the FCK editor doesn't always play very well with YUI, and it is > generally harder to work with than the rest of the YUI code (including > lack of documentation, lack of support in the FCK forum, and more > complicated code). ok, the code is in fact more complicated, but i found it much more easy to add some plugins to the fckeditor than to the yui. And with respect to the richness of features and config options, in my eyes the fckeditor is superior to the yui, too. Another example: with my orbeon-based app, users have to create and edit texts strucutred only by html-markup besides strong-structured form data. These texts could reach up to 10 or 12 paragraphs (<p>'s), and the users don't have any idea what HTML or XML is. So they should have a component behaving like the word processor software they know. Of course, i could do this with repeat and up to 12 YUI RTEs, but that's really no good solution. The user don't wants to edit one paragraph at one time, he wants to write a complete abstract as one piece without having to change editor windows for every <p>- My users don't just enter own text, but copy and paste content from MS-Word docs. So, with YUI, i would have to clean the instances from all the rubbish WordML content that's silently copied, too (and that wolud render my instances invalid...). Or i use a component that allows to force the users just to c&p plain text. fck has a nice solution for this (with a way to configure it at one central place), saving a lot of time and programming effort. So, it may be easier for a developer to embed the YUI RTE into a system like Orbeon Forms, but for sure it would be a pain to the user or the app developer to adapt that component for own needs. >> but it (the >> yui rte) lacks a lot of features that are mandatory for me (support >> for paragraphs, for example). > Are you saying that the RTE is generating <br/><br/> instead of <p>? yes, AFAIK the YUI RTE doesn't generate <p>'s, and even worse, there seems to be no way to configure it to produce <p>'s instead of <br>'s, or to let the user decide (using simple [enter] or [shift]+[enter]) (there's a forum posting by the creator of the YUI RTE saying that that component was never meant to support paragraphs, and there may be some custom solutions but they didn't find their way into the main code). I would be happy if i'm wrong regarding this point, because it's the central (but not only) obstacle for me when thinking about migration from fck to yui rte. As XForms and XML are an ideal way to edit semi-structured data, and as there are needs to edit parts of weak or unstructured text data, a text editor component should provide the full set of text edit options, and it should be easily to configure. Ideally, it should behave as a word processing software regarding standard edit tasks, like inserting a line break _or_ a new paragraph. Regarding yui rte and fckeditor, IMHO only the fckeditor fulfills those needs. 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 |
Administrator
|
Florian,
On Jan 14, 2009, at 2:28 AM, Florian Schmitt wrote: > ok, the code is in fact more complicated, but i found it much more > easy to add some plugins to the fckeditor than to the yui. And with > respect to the richness of features and config options, in my eyes the > fckeditor is superior to the yui, too. > [...] I understand. And this is why we will support both the YUI and FCK editor for a while. The RTE is relatively new, but well supported. So my hope is that the RTE will become richer, and that over time there will be less of those cases where one needs to use the FCK editor instead of the RTE editor. But don't worry, we have no plan to remove the code that supports the FCK editor in the foreseeable future. > yes, AFAIK the YUI RTE doesn't generate <p>'s, and even worse, there > seems to be no way to configure it to produce <p>'s instead of <br>'s, > or to let the user decide (using simple [enter] or [shift]+[enter]) > (there's a forum posting by the creator of the YUI RTE saying that > that component was never meant to support paragraphs, and there may be > some custom solutions but they didn't find their way into the main > code). I would be happy if i'm wrong regarding this point, because > it's the central (but not only) obstacle for me when thinking about > migration from fck to yui rte. > > As XForms and XML are an ideal way to edit semi-structured data, and > as there are needs to edit parts of weak or unstructured text data, a > text editor component should provide the full set of text edit > options, and it should be easily to configure. Ideally, it should > behave as a word processing software regarding standard edit tasks, > like inserting a line break _or_ a new paragraph. Regarding yui rte > and fckeditor, IMHO only the fckeditor fulfills those needs. ). Of course, most likely the YUI team won't jump on it and implement what you need overnight, but the more request they get for a certain feature the more likely they are to implement it in the future. If you get to post a message there, could you also reply to this thread and include a link to the corresponding thread on the YUI list? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/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 |
Alessandro,
> But don't worry, we have no plan to remove the code that > supports the FCK editor in the foreseeable future. ah, that's good to hear :-) > What about posting a message in the YUI list explaining this > (http://www.nabble.com/ydn-javascript-f16949.html). Of course, most > likely the YUI team won't jump on it and implement what you need > overnight, but the more request they get for a certain feature the more > likely they are to implement it in the future. If you get to post a > message there, could you also reply to this thread and include a link to > the corresponding thread on the YUI list? good idea - i got an interesting response by Dav Glass, the developer of the YUI rte, which sounds generally promising: http://www.nabble.com/Re%3A-rte%3A-paragraphs%2C-paste-as-plain-text-p21483427.html 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 |
Administrator
|
Florian,
On Jan 15, 2009, at 10:29 AM, Florian Schmitt wrote: > good idea - i got an interesting response by Dav Glass, the developer > of the YUI rte, which sounds generally promising: > > http://www.nabble.com/Re%3A-rte%3A-paragraphs%2C-paste-as-plain-text-p21483427.html So it looks like the RTE not generating paragraphs is "just" a bug. Good to hear. And thanks for asking the question in the YUI list; so now you not only have to bug us to fix bugs, but also the YUI guys; life is hard! ;) Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/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 |
Free forum by Nabble | Edit this page |