Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Content Editor Discussions

Forum for content editors and CMS users.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

elRTE


Reply

3 Posts   1451 Views

Avatar
Tony Air

23 October 2012 at 4:23pm (Last edited: 23 October 2012 4:26pm), Community Member, 13 Posts

Hi there, I don't like TinyMCE and we're using CKEditor at the customized SS2, but I don't have module implementation.
Since SilverStripe CMS was moved to jQuery UI we decided to work on elRTE integration. I think it will be the best editor for SS.
I have attached draft elRTE module for the SS3.

Ah, also u need to comment out a line at framework/admin/code/LeftAndMain.php:
FRAMEWORK_DIR . '/javascript/HtmlEditorField.js',

elRTE is an open-source WYSIWYG HTML-editor written in JavaScript using jQuery UI. It features rich text editing, options for changing its appearance, style and many more. You can use it in any commercial or non-commercial projects.

Here's some additional information about elRTE: http://elrte.org/

P.S. For some reason my old account is inaccessible so I've got to use one a new one, sorry

Attached Files
Avatar
DesignerX.com.au

27 January 2013 at 1:49pm Community Member, 107 Posts

Hi, I been looking for this :)
is it for SS3 or SS2.4.x ?
Thanks

Avatar
Tony Air

2 February 2013 at 3:10pm (Last edited: 2 February 2013 3:14pm), Community Member, 13 Posts

Hi it's for SS3 I have also fixed few issues and here's the latest version.
Sorry, I have taken it from my project so script paths should be fixed.
Plz, share if u'll make any improvements.

In this version u don't need to do any core modifications just replace HtmlEditorField in DataObjects or Pages with this code

public function getCMSFields() {
      $fields = parent::getCMSFields();
      $fields->replaceField('Content',
         new ElEditorField('Content',_t('SiteTree.Content','Content'))
      );
      return $fields;
   }

Attached Files