TinyMCE:Plugins/advimage
From Moxiecode Documentation Wiki
[edit]
Plugin: advimage
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.
[edit]
Advimage plugin options
- theme_advanced_styles (prevoisly advimage_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.
[edit]
Initialization Example
tinyMCE.init({
theme : "advanced",
mode : "textareas",
plugins : "advimage"
});
