I use tinymce, trying to expand the plugin to show a dialog with a specific layout:
editor.windowManager.open({ title: 'Title of my dialog', body: [ {type: 'label', text: 'my label'}, { name:'my_input', type: 'textbox'}, // { type: 'text', html:'some content with <b>bold</b> if posilbe!'}, // { type: 'html', value:'<div>with custom formating</div>'} ] }
I checked the tinymce.ui documentation several times, but I can find a way to add html or a text component to the dialog constructor (for example, the comment line in the example).
I know that there is an option that uses a ready-made html template for dialogue .. but there are also many events and triggers, so using the constructor and .ui components is more suitable for my case.
source share