...
If you've done it correctly the following path exists: "contenido/external/wysiwyg/tinymce4/tinymce/js".
Writing own plugins
As some of the tinymce 3 plugins are gone (specifically advhr, advimage, advlink, inlinepopups, style and xhtmlxtras) you may want to write your own replacement plugins.
Replacement hints
Maybe you want to use their compat3x plugin to load the legacy code.
General
General: Make sure to use tinymce 4's windowManager in order to display model dialogs. Pass custom parameters like in their example to the new window. Their documentation mentions the setParams function to write into the variables you passed to the dialog during opening. Close the dialog window using the tinymce instance in the calling window, e.g. using "parent.tinymce.activeEditor.windowManager.close(window)". Bind the dialog instance you created using the open function of the windowManager using the on function of the instance to the close event.
Code Block | ||||
---|---|---|---|---|
| ||||
var diag = ed.windowManager.open({
title: 'Your window title',
url: 'url/to/load',
}, {
oneCustomParameter: false
});
diag.on('close', function() {
var args = ed.windowManager.getParams();
// your code here
}); |