11/24/2023 0 Comments Tinymce windowmanager openWP's Insert/edit link triggers a popup with that capability but from what I can tell that plugin uses a custom dialog box and I was hoping there might be a TinyMCE API method/property that can enable this, but the documentation is pretty terse. The open method does not return a reference as a normal window.open would and I can't seem to find a TinyMCE way to get the reference. 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'm trying to figure out how I can also close my plugin's popup by clicking away from it (e.g., if I click the TinyMCE overlay outside the popup itself). Registered: Posts: 5 TinyMCE 3.0.8 I am trying to get a reference to a window opened by invoking. 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 (). I found the standard controls source class on github, but I can't find a way to add a new control through a plugin. 've created a small plugin which adds a button to the TinyMCE toolbar. My goal is to create a custom control to be used in the dialog's body opened width. Simply loading the editor using wpeditor ( '', 'iistest' ) should work fine. ![]() Setting the editor to teeny mode only outputs the minimal editor as used in the 'Press This' editor. 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 (). Does anyone have any idea how I can achieve this? Here is the code to create this modal. 203 1 2 11 You need to remove the 'teeny' > true part. tinymce.PluginManager will open a dialog using windowManager.open (). windowManager. This class can be extended to provide for example inline dialogs. ![]() I use the windowmanager.open () function to show a modal, but I dont know how to hide the ok button in this modal. open () openUrl () tinymce.WindowManager This class handles the creation of native windows and dialogs. I was hoping that the TinyMCE body options would provide this, but it doesn't. Tinymce Windowmanager.open () Parameters Ask Question Asked 6 years, 10 months ago Modified 6 years, 10 months ago Viewed 7k times 4 I use wordpress and currently writing a plugin for the tinymce-editor. ![]() What I want to have is the textbox be a TinyMCE editor. This class handles the creation of native windows and dialogs. tox-dialog, like this: var dialogApi editor. I'm creating a custom TinyMCE button that will open the following modal to create a shortcode: 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |