How-to: Add Undo,Redo,Superscript, Subscript to Redactor Toolbar by AndyJ

Permalink 1 user found helpful
I wanted to draw attention to a great How-To AndyJ wrote on adding plugins to Redactor.
http://www.concrete5.org/documentation/how-tos/developers/opening-u...

This should provide a solid foundation for helping others add and write their own plugins.

There is a thread on Redactor plugins and features to add here. We can use it to compile needed features and solutions.
http://www.concrete5.org/community/forums/5-7-discussion/redactor-i...

MrKDilkington
 
WebcentricLtd replied on at Permalink Reply
hi,
there is also some functionality I didn't add in there.
The fontfamily, fontcolor and fontsize selectors can all also be added to the toolbar by adding them into the block javascript.

I didn't include them as their remove inline styles method doesn't appear to work but I now have a way around that.

I'll post an update to this thread in a shirt while with the details.
MrKDilkington replied on at Permalink Reply
MrKDilkington
I would be very curious to know how you got these plugins running.

There seems to be some pretty significant changes between the current Redactor 10 code and the version that is in concrete5.

Your code and the examples on the Redactor site are very different.
http://imperavi.com/redactor/examples/buttons-undo-and-redo/...
http://imperavi.com/redactor/examples/buttons-sup-and-sub/...

Redactor 10 looks sooo much easier to use and make plugins for.
WebcentricLtd replied on at Permalink Reply
hi,
I just looked through concrete5's redactor.js and some older redactor plug in code I found on github and just plugged the icons into functionality that was already there - the code I've added takes no account of languages etc so is really just a hack.

I've just added another how to on how to add the font size, font color and font family plugins working. Hopefully that will be approved at some point but I thought I'd add a how to than put it in a thread as they just get lost so easily.

I wanted to get a head start on Redactor 10 but because you have to have a license you can't download it from Imperavi. Quite a lot has changed so I wanted to hack about with the new redactor.js - but at the same time I'm feeling too tight to pay for it - maybe I can get at it from somewhere else.
MrKDilkington replied on at Permalink Reply
MrKDilkington
From what I read, Franz made a deal with Imperavi to be able to include Redactor in concrete5. I can't imagine that deal would only include version 9.x.

We need to ask Franz if he can get a copy of the latest 10.x version.

Also, I hope the core team can prioritize updating Redactor to 10.x. Because it looks like all the Redactor 9.x documentation on the Imperavi site is gone. With limited documentation on the current version, making plugins will be a challenge.

The implementation of Redactor as is needs some substantial attention.
WebcentricLtd replied on at Permalink Reply
it isn't very difficult to find as it happens -there are a number of open source projects that use it on github. I'm just using it for reference obviously...