PANmedia / raptor-editor

Raptor, an HTML5 WYSIWYG content editor!
www.raptor-editor.com
GNU General Public License v3.0
533 stars 136 forks source link

Previous action form CSSClassApplierButton #157

Closed compilando closed 10 years ago

compilando commented 10 years ago

Hello, I'm implementing a custom button with an AJAX action. After AJAX action completion, I want to apply certain CSS class to the selection.

What method do you recommend?. I have two:

1) Add a custom button: I can call my AJAX action, but don't now how to use the "CssClassApplier" stuff from this button.

2) Use a CSSClassApplierButton: In this case, I ask to you if it is possible to add a "pre-action" to the built-in action (CSSClassApplierButton.prototype.action).

Thanks!