![]() This class can be extended to provide for example inline dialogs. I found the standard controls source class on github, but I can't find a way to add a new control through a plugin. This class handles the creation of native windows and dialogs. Register the command so that it can be invoked by using ('mceExample') Įd. My goal is to create a custom control to be used in the dialog's body opened width. I need to convert the width to a percentage value instead of a pixel based value. ![]() Any ideas how? (function() url Absolute URL to where the plugin is located. 1 The script below invokes an inline popup window from a tinyMCE editor. That popup can be closed by (1) clicking the 'Cancel' or 'OK' buttons, or (2) pressing the esc key. ![]() When clicked, it opens a popup window via (). tinymce.WindowManager Docs TinyMCE Return to Website tinymce.WindowManager This class handles the creation of native windows and dialogs. This is described by The dialog can also be closed by clicking the 'X' in the top right corner. The dialog can be closed manually by using windowManager.close (). This class can be extended to provide for example inline dialogs. 1 I've created a small plugin which adds a button to the TinyMCE toolbar. tinymce.PluginManager will open a dialog using windowManager.open (). 1 Answer Sorted by: 0 You may use this (no tinymce solution) window.open (url + '/youtube.htm', 'mywindow','resizable1,inline1,width'+320 + parseInt (ed.getLang ('ltawidth', 0))+'height'+120 + parseInt (ed. I need to convert the width to a percentage value instead of a pixel based value. open () openUrl () tinymce.WindowManager This class handles the creation of native windows and dialogs. tox-dialog, like this: var dialogApi editor. I assume you are creating the modal as per the documentation link you provide, if so, then the buttons parameter let you specify the buttons to add to the modal and the actions of said buttons, like this: script below invokes an inline popup window from a tinyMCE editor. I did a bit more digging and found some sort of workaround, after windowManager.open() use the DomQuery utils to add a custom class to the created. So 2 steps Code a tinymce. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |