Links in FCK Editor

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

Links in FCK Editor

Jim Logan-3
I need to create a query that allows the user to find something's URL
(e.g., by category or name) and insert it as a link within the FCK
editor (Orbeon's rich-text editor). Is it possible to write a plugin to
the FCK editor in Javascript that calls back into the XForm to query for
the URL? Does anyone have any other ideas?

Thanks,
-Jim



--
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: Links in FCK Editor

Alessandro Vernet
Administrator
Jim,

On Wed, Oct 1, 2008 at 5:36 PM, Jim Logan <[hidden email]> wrote:
> I need to create a query that allows the user to find something's URL (e.g.,
> by category or name) and insert it as a link within the FCK editor (Orbeon's
> rich-text editor). Is it possible to write a plugin to the FCK editor in
> Javascript that calls back into the XForm to query for the URL? Does anyone
> have any other ideas?

If you want to have a button in the FCK editor, along the other FCK
editor buttons, that provides this functionality, then yes, you will
need to figure out how to plug your code into the FCK editor. I have no
particular insight on how to do that though.

Maybe another way to look at it is to have this functionality
implemented outside of the FCK editor



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Links in FCK Editor

Alessandro Vernet
Administrator
In reply to this post by Jim Logan-3
Jim,

On Wed, Oct 1, 2008 at 5:36 PM, Jim Logan <[hidden email]> wrote:
> I need to create a query that allows the user to find something's URL (e.g.,
> by category or name) and insert it as a link within the FCK editor (Orbeon's
> rich-text editor). Is it possible to write a plugin to the FCK editor in
> Javascript that calls back into the XForm to query for the URL? Does anyone
> have any other ideas?

If you want to have a button in the FCK editor, along the other FCK
editor buttons, that provides this functionality, then yes, you will
need to figure out how to plug your code into the FCK editor. I have no
particular insight on how to do that though.

Maybe another way to look at it is to have this functionality
implemented outside of the FCK editor, in XForms. In XForms you can set
the value of the node to which the FCK editor is bound, and this way
insert that clever link which depends on a category or name selected by
the user. Downsides of this approach are that users will have to enter
the category outside of the FCK editor, for instance in an
xxforms:dialog (they can't just select some text and click on a button),
and that the insertion point will always be at the end of the text (as
you don't know where the cursor is). But as an upside, because you can
write this in XForms, it will be much simpler to implement and maintain
in the future :).

Does this make sense?

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