At my company, we use Sharepoint 2007 for our internal intranet. It’s a pretty good off-the-shelf product overall, but in typical M$ fashion, the rich-text editing capabilities in MOSS 2007 are Internet Explorer-only. The thing is, at a technology company, a lot of users tend to use
other better browsers, like Opera or Firefox. In fact, a lot of the folks I work with have Macs and use Safari.
I decided to go with TinyMCE, because:
- it supports more browsers
- it loads faster than FCKEditor
- development community seems to prefer it
- supposedly cleaner xhtml
- I’ve used it in the past (usually w/Drupal sites, but also some plugin development)
Some down-sides to TinyMCE:
- Larger file sizes than FCKEditor
- Only experimental support for Safari as of version 3rc1
var head = document.getElementsByTagName("head")
script = document.createElement(’script’);
I also created two different configurations for Sharepoint’s FullHtml or Basic RTEs.
From there, I just had to move the tinymce package out to C:\Program Files\Common Files\ Microsoft Shared\web server extensions\12\ TEMPLATE\LAYOUTS\1033. You’ll need to set the Windows-explorer file security on files you move out to allow Sharepoint to serve them up.
Polishing it up
As I said, TinyMCE’s support for Safari is currently experimental, so I added some code to warn users of possible problems and allow them to disable TinyMCE during their session.
- NON_IE.JS didn’t appear to be loaded from the My Site collection, thus no RTE on My Site profile, etc. – still looking into this one.
- There will probably be some issues/changes for deploying this to a non-US Sharepoint install. The 1033 directory (which I’ve hard-coded) is the US-specific templates directory.
- Also, as mentioned in the original Arstechnica forum entry, NON_IE.JS may be modified by an M$ release, so you may need re-patch it from time-to-time.
- Please note that making these modifications may put your Sharepoint installation in an unsupported state according to M$. So, I guess what you *should* have done, is asked M$ support why, out-of-the-box their RTE only works in IE.
- Thanks to Pont at Arstechnica for his original look at FCKEditor integration and being kind enough to share =].