Return to Jive Software

This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
1,384 Views 10 Replies Last post: Oct 6, 2008 5:12 AM by gettmanc RSS
gettmanc Novice 80 posts since
Jul 3, 2008
Currently Being Moderated

Oct 1, 2008 5:31 AM

Using rich text editor within a widget

Hello,

 

Is there a way to get the rich text editor that is used when you edit a document embedded into another window?

 

I want the user to click on an "edit" button and have a screen similar to the document editing appear but have the submit button redirect back to the overview tab instead of the usual wiki/document display tab.

 

Thanks,

Cassie

Diana Dukart Jive Employee 157 posts since
Aug 25, 2008
Currently Being Moderated
Oct 1, 2008 3:49 PM in response to: gettmanc
Re: Using rich text editor within a widget

Hi Cassie,

 

There is the Formatted Text widget that has the rich text editor embedded in it.  Users can format text when they are customizing their home pages or administrators can use it when customizing the space pages.  Does that work for your needs?

 

As far as submitting to the overview tab, I'm not sure what you mean by that?  Are you wanting the submit to happen outside of the personalizing/editing of a page?

 

Diana

Diana Dukart Jive Employee 157 posts since
Aug 25, 2008
Currently Being Moderated
Oct 1, 2008 4:54 PM in response to: gettmanc
Re: Using rich text editor within a widget

Hi Cassie,

 

Glad you found TinyMCE was the rte.  We use a Struts action and javascript to get at the submitted text.  Probably best to dig into the editor methods, like you already thought of .

 

I found this javascript that might help:

 

var field = document.getElementById("f_content");
field.value = tinyMCE.getContent(tinyMCE.getWindowArg('editor_id'));
field.form.submit();

 

Hopefully that helps.

Diana

Diana Dukart Jive Employee 157 posts since
Aug 25, 2008
Currently Being Moderated
Oct 2, 2008 10:42 AM in response to: gettmanc
Re: Using rich text editor within a widget

Hi Cassie,

 

I'd take a look at the tinyMCE directory under resources in the clearspace code:

\clearspace\src\resources\resources\scripts\tiny_mce

 

Maybe start with this file:

\clearspace\src\resources\resources\scripts\tiny_mce\plugins\fullscreen\fullscreen.htm

 

It has a render method in it that might help.

 

Diana

Diana Dukart Jive Employee 157 posts since
Aug 25, 2008
Currently Being Moderated
Oct 3, 2008 9:59 AM in response to: gettmanc
Re: Using rich text editor within a widget

Hi Cassie,

 

I'm just going to link this ticket to your other ticket (http://www.jivesoftware.com/community/message/128626) since they sound like they are getting at the same problem.  That way we can keep the chat history in one string.  Let me know if that's not okay with you.

 

I did find out that the Formatted Text widget does not use a FTL since it just displays text.  I'm looking into other solutions for you.  I'll let you know what I find soon....

 

Diana

Diana Dukart Jive Employee 157 posts since
Aug 25, 2008
Currently Being Moderated
Oct 3, 2008 11:29 AM in response to: gettmanc
Re: Using rich text editor within a widget

Try looking at the status update widget.  That takes user input all the time instead of just when you press edit.   It uses a regular text field not a rich text, but the logic is probably the same.

 

Diana

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.