widgetfactory / jce-legacy

JCE - A Content Editor for Joomla!
4 stars 2 forks source link

Add class 'btn' to the 'Toggle Editor' link #14

Open nvyush opened 7 years ago

nvyush commented 7 years ago

How about to add class btn to the 'Toggle Editor' link? Modern Joomla! templates (e.g. "protostar" for the site, "isis" for the admin panel) support this css class, for older it is no matter.

File /components/com_jce/editor/libraries/js/editor.js: replace (line 391) '<span id="wf_editor_' + el.id + '_toggle">' with '<span id="wf_editor_' + el.id + '_toggle" class="btn">'

File /administrator/components/com_jce/views/profiles/tmpl/form_features.php replace (line 59) <span id="editor_toggle"> with <span id="editor_toggle" class="btn">

ryandemmer commented 7 years ago

Thank you for your contribution.

The Toggle Editor link is removed in JCE 2.6+

https://www.joomlacontenteditor.net/downloads/editor/category/development

https://github.com/widgetfactory/jce-muon