![]() I'll log an internal documentation task to get that specific detail added to the migration guide. The first part is just adding our button (registering it with TinyMCE), the second part, with the function mythemetinymceextravars (), is adding the object in which we’ll add our translatable strings that we can use in the tinymcebuttons.js file. If you do need to access a global from the parent window, then I'd suggest doing something similar like what demo'd above by binding a function to the window object when opening the dialog. Brilliant v5 feels, looks and behaves beautifully. I should also note that the new URL dialog API doesn't support passing parameters when opening the dialog either (similar to the regular dialogs), so the getParams API wasn't reinstated. when I do: console.log (editor. ![]() The documentation for the new URL dialog functionality can be found here. I'd like to close the dialog within the onclick function of the first button, I've tried running the close () function that I've found on the windowManager object through console.log but it doesn't work. It partially works: the buttons get displayed and clicking on them shows up the media upload windows. Since then, we've brought back URL dialog functionality but in a hopefully more modern way, such as communicating via window.postMessage() instead of relying on accessing globals from a parent frame, where a new dialog may or may not have opened. It outputs a tinymce editor with a custom id. The former is for accessing editor settings, while the latter was used in TinyMCE 4 to get params passed when opening URL dialogs.Īnyways, URL dialogs were originally removed in TinyMCE 5 and as such all the windowManager functionality that related to URL dialogs (eg ()) was also removed. Just to clarify editor.getParam() is not the same as (). ![]() File_picker_callback: function ( callback, value, meta ) ,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |