So as to make my WYSIWYG editor more user friendly for the client, I would like to create a set of custom plugins to insert. I seem to have the basics working now (highlight some text, click a WYSIWYG buttons, wrap text in HTML). The one thing I can't seem to get working is a settings popup overlay.

The ideal situation is that the settings modal appears where the user can:
* insert a url
* choose a dropdown from types of link
* href uses these options

Is this possible, if so, where do I need to first look to be able to do this? I assume it's in my plugins .inc file I use the settings array, but that just sets variables in code, not allowing user to edit them.

Thanks for any advice you can give.

Dan Duke

Comments

twod’s picture

The settings array is there to allow developers a simple way of adding or overriding any editor settings needed just to get the plugin to load, such as the the path to placeholder images or other files needed during operation, since their path can change depending on where the plugin was installed.

Wysiwyg only has a limited API for dealing with cross-editor popups. I only know of one module/plugin using it, Image Attach, and it only works with TinyMCE.

If you want to create popups from cross-editor plugins, you'll have to take a similar route to the one used by WYSIWYG image upload. That plugin uses the API from jQuery UI/jQuery UI Dialog to create its popup and get the selected settings back from it.

Does that help?