![]() This class can be extended to provide for example inline dialogs. In the zz-btns.css file, I’ll target that and reference a custom image for the button icon. This class handles the creation of native windows and dialogs. For example, the custom button zz_tc_button uses a class of zz-mce-button. Print public windowManager : tinymce.WindowManager Window manager reference, use this to open new windows and dialogs. These are used to target between the various buttons created to apply different icons with the CSS style background-image. Within the zz-btns.js JavaScript file there is a line for icon where you can add any class you’d like. If you have been following along with the code provided you should have an includes folder with a zz-btns.css file and a folder called icons within the includes folder. tinymce.WindowManager Docs TinyMCE Return to Website tinymce.WindowManager This class handles the creation of native windows and dialogs. These will take your buttons from plain text (or nothing) to your own recognizable brand. ![]() Now that I’ve covered the JavaScript portion, let’s take a moment to discuss adding custom button icons. If ( !current_user_can('edit_posts') & !current_user_can('edit_pages') ) ,īelow are images of the popup window and a submission. The needed functions.php file additions are the following:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |