This is a more advanced image dialog mostly based on code contributed by Michael Keck. This one supports mouseover/out image swapping.
Installation Instructions
- Copy the advimage directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins).
- Add plugin to TinyMCE plugin option list example: plugins : "advimage".
- Add this "img[!src|border:0|alt|title|width|height|style]a[name|href|target|title|onclick]" to extended_valid_elements option.
Advimage plugin options
Name | Summary |
---|---|
theme_advanced_styles | This option should contain a semicolon separated list of class titles and class names separated by =. The titles are the ones that get presented to the user in the styles drop down list and and the class names is the classes that gets inserted. |
advimage_update_dimensions_onchange | This option enables you to control if the image dimensions should be updated with new data if the image src field is changed. This option is enabled by default. |
Initialization Example
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "advimage"
});
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.