senlin / classic-editor-addon

This free "Classic Editor Addon" plugin makes sure that Gutenberg cannot be accidentally activated even while the "Classic Editor" plugin is active.
GNU General Public License v3.0
19 stars 5 forks source link

Adding a Button #20

Closed craigbass76 closed 7 months ago

craigbass76 commented 7 months ago

Is it possible to add a button to the editor so that I can insert a special div (a lot)? I think if I can see where the other buttons are, I can figure it out from there. ANything I'm finding online is block-based though, or very old. (class-wp-edit.php references and such).

senlin commented 7 months ago

Hello Craig,

Sure it's possible to add a button to the editor.

However that has nothing to do with the Classic Editor + plugin, which only brings back the Classic Editor.

In the past I developed a plugin that used the hidden but available styles dropdown menu to add classes to it. The plugin is archived, but publicly available, which might help you on your way.

Another good resource that can help is the TinyMCE Custom Styles article in the WP Codex.

Hope that helps, good luck! Pieter

craigbass76 commented 7 months ago

Thanks, man. I wasn't sure if TinyMCE was under the hood, or the real old FCKeditor. I gave up hunting and asked you.