-
Notifications
You must be signed in to change notification settings - Fork 33
Joomla setup
Adam Maschek edited this page Mar 30, 2015
·
2 revisions
Everything below was tried out with Joomla 1.5.4. By default Joomla uses TinyMCE 2.x so the basics are the same as for the TinyMCE_setup.
UPDATE: Newer Joomla use TinyMCE 3.x and the installation is much simpler. Read steps below.
Joomla can also work with FCKeditor, please read Joomla_FCK_setup.
- Copy folder "imgmap" to "JOOMLA_FOLDER/media/editors/tinymce/jscripts/tiny_mce/plugins/"
- Open tinymce.php from "JOOMLA_FOLDER/plugins/editors/tinymce/"
- Find line:
// advimage $advimage = $this->params->def('advimage', 1);
if ($advimage) {
$plugins = 'advimage'; $elements = 'img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style]';
}
- After that add:
// imgmap $imgmap = $this->params->def('imgmap', 1);
if ($imgmap) {
$plugins = 'imgmap'; $elements = 'img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]'; $buttons4 = 'imgmap';
}
- Save file. Now Imgmap will work with tinymce in JOOMLA 1.7
- copy files from plugin_tinymce3{x}.zip to {yourjoomlainstance}/plugins/editors/tinymce/jscripts/tiny_mce/plugins/imgmap/
- go to Joomla admin/Plugin manager/Editor - TinyMCE/Advanced Parameters, and enter
imgmap
in both Custom plugin and Custom button input fields. Make sure functionality parameter is set to extended. - Launch up your article editor, and you are ready to use the plugin.
- copy files from plugin_tinymce{x}.zip to {yourjoomlainstance}/plugins/editors/tinymce/jscripts/tiny_mce/plugins/imgmap/
- edit {yourjoomlainstance}/plugins/editors/tinymce.xml, after 'directionality' add lines:
<param name="imgmap" type="radio" default="1" label="Imagemap" description="Imagemap">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>
- edit {yourjoomlainstance}/plugins/editors/tinymce.php, after 'XHTMLxtras' add lines:
$imgmap = $this->params->def( 'imgmap', 0 );
if ( $imgmap ) {
$plugins[] = 'imgmap';
$buttons3[] = 'imgmap';
$elements[] = 'img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]';
}
- go to Joomla admin/Plugin manager/Editor - TinyMCE 2.0/Advanced Parameters, and make sure Imagemap is set to Show.
- go to article editor, click on any image, and notice the button highlighted on the toolbar, you are done:)
Eventually will split this article for the different Joomla versions. Further help you can find here: https://code.google.com/p/imgmap/wiki/Joomla_setup