?
Solved

tinyMCE:  How to use an imagemap?  PHP  Joomla

Posted on 2011-03-08
3
Medium Priority
?
859 Views
Last Modified: 2012-05-11
TinyMCE is stripping my imagemap by removing USEMAP from the HTML.  I dont want to disable tiny.   I just want a way to cause TinyMCE to recognize USEMAP in the HTML without stripping it.  Can this be done?  Thanks!
0
Comment
Question by:arthurh88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 14

Expert Comment

by:Allan Nisbet
ID: 35084985
This could be what your after

http://tinymce.moxiecode.com/wiki.php/Configuration:valid_elements

Looks like TinyMCE by default is set to strip the USEMAP from the HTML on save whilst using the editor.

Logical solution would be to remove the USEMAP reference in TINYMCE and it should work.

I stopped using TinyMCE due to issues like this and other edit strips, we started using JCE editor instead and havent looked back.

Storm
0
 
LVL 14

Expert Comment

by:Allan Nisbet
ID: 35085009
Another solution from the joomla forums


(i)TinyMCE for edit in the Plugin Manager (Extensions -> Plugin Manager) and set the parameters as follows:

(a) Functionality to Extended

(b) Code cleanup on save to Never or Front Only


(iii) You could also set the editor as No Editor in the Global Configurations and edit the article.

Storm
0
 
LVL 14

Accepted Solution

by:
Allan Nisbet earned 2000 total points
ID: 35085025
And finally the best solution

Open up the /plugins/editors/tinymce.php

// 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]';
}

Open in new window


Add "|usemap" after "|style" (the very last attribute listed in img[class|src...).

SAve teh file and it should work

Storm
0

Featured Post

Tutorial: Introduction to Managing a Linux Server

In this tutorial on systemd, we will explore:
-OS/Distro Adoption
-chkconfig and Other Legacy Commands
-Summary and Key Commands

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question