function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ptepperptepper 

Customizing Built-in (FCKeditor) Rich Text Editor in Winter '09

Hello,

I started a thread on this a while ago about this and didn't really get anywhere, but it seems like a new one can be started for Winter 09, since it looks like the Dojo rich-text editor that was available in Summer 08 has been replaced with FCKeditor in Winter 09.

Still wondering about the same question- does anyone know if it's possible to configure and customize this editor? But now I'm hoping there will be an answer since the editor has been changed.

In particular, there's an option for

FCKConfig.ForcePasteAsPlainText = true ;

that I would really like to use, because otherwise my users can paste all kinds of messy text formatting in there. In the default setup it's set to false.

I tried just inserting it between <script> tags but that doesn't work.

Thanks,
-paul
jwetzlerjwetzler
I'm wondering if the switch of the underlying editor set off any alarm bells telling you that trying to configure it through javascript is not a good idea :)  Imagine if you had hacked in a customization to the editor from the last release -- it definitely would have stopped working in Winter '09.

We do not have any built in customization for the rich text editor at this time and therefore anything you do from javascript will be at your own risk.  Maybe it would be better for you to create your own custom component using your favorite rich text editor?  That way you'll have full control.

If there are specific ways you'd like to customize the editor (maybe some new attributes to control various features?), I'd encourage you to post those specifics to the idea exchange.
ptepperptepper
Hi Jill,

I actually tried running many different JS rich text editors in Summer 08 -- TinyMCE, YUI's editor, WYMeditor, jwysiwyg, Dojo editor run externally -- but I couldn't get any of them to run properly in that version of Visualforce.

I had assumed that they still would not work in Winter 09, but I'm pleasantly surprised to report that TinyMCE seems to work for the most part Winter 09.

I'm still working on getting the TinyMCE plugin feature I wanted to work-- pasting with a special popup that removes external formatting, I think because it involves including additional scripts, but seems doable now.

I'm guessing others may work as well, but that's the one I'm most familiar with and it works.

thanks,
-paul


Message Edited by ptepper on 10-21-2008 09:19 AM
ptepperptepper
Nevermind. The basic functionality of TinyMCE works, but so far I haven't been able to figure out how to get anything involving launching pop-up windows to work (the paste plugin, html editing), assumedly because of the way Visualforce interacts with the TinyMCE javascript. I spent a while looking at it, but didn't figure it out.

Maybe someone else has a solution.

-paul