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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

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

elRTE


Go to End


3 Posts   3352 Views

Avatar
Tony Air

Community Member, 13 Posts

23 October 2012 at 4:23pm

Edited: 23/10/2012 4:26pm

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

Avatar
DesignerX.com.au

Community Member, 107 Posts

27 January 2013 at 1:49pm

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

Avatar
Tony Air

Community Member, 13 Posts

2 February 2013 at 3:10pm

Edited: 02/02/2013 3:14pm

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