GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 395 forks source link

How to bind content to a Dialog? #536

Open trans-result opened 5 years ago

trans-result commented 5 years ago

I already created "my own" dialog and now want to bind content to the dialog. can you please explain me how that works?

var modal = new ContentTools.ModalUI(true, true);
var dialog = new ContentTools.DialogUI('test')

ContentTools.EditorApp.get().attach(modal);
ContentTools.EditorApp.get().attach(dialog);

modal.show();
dialog.show();