Open GoogleCodeExporter opened 9 years ago
Just found a solution:
The wiki says:
extended_valid_elements:
"img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmous
eover|onmouseout|name],map[id|name],area[shape|alt|coords|href|target]",
Should be:
extended_valid_elements:
"img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmous
eover|onmouseout|name],map[id|name],area[shape|alt|title|coords|href|target]",
Was missing another title tag...
Original comment by sahar...@gmail.com
on 5 Apr 2010 at 6:54
Hi saharben,
I'm attempting to get this to work with Wordpress as well and can't seem to
wrap my head around how to go
about it... Can you point me in the right direction? Should I use an already
established Wordpress plugin like
TinyMCE Advanced so that I'm not editing the core Wordpress files? Or did you
go ahead and put this imgmap
editor in the wordpress/wp-includes/js/tinymce/plugins folder?
Can anyone help me with instructions for Wordpress? Thanks!!!
Original comment by craig.ho...@ymail.com
on 30 May 2010 at 10:26
I used TinyMCE Advanced to avoid core editing.
Original comment by sahar...@gmail.com
on 31 May 2010 at 2:26
Ok, I'll try that thanks!
Original comment by craig.ho...@ymail.com
on 31 May 2010 at 3:24
1. I've downloaded and added the imgmap contents into the TinyMCE Advanced
here, "tinymce-
advanced/mce/imgmap".
2. I've added "imgmap" to the appropriate arrays in the "tadv_defaults.php" file
3. I've called the, "imgmap.js" file from "tinymce-advanced.php" file as
instructed under the "Script Inclusion
instrucions here, http://code.google.com/p/imgmap/wiki/Setup
Where do I ad the "extended_valid_elements:"? And am I missing anything else? I
sincerely thank you!! I'm
learning and am grateful for any willingness to help.
Original comment by craig.ho...@ymail.com
on 31 May 2010 at 4:02
In your theme functions.php use this:
add_filter( 'tiny_mce_before_init', 'additional_mce_settings' );
function additional_mce_settings( $init_array ) {
$init_array['extended_valid_elements'] =
'img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|onmous
eover|onmouseout|name],map[id|name],area[shape|alt|title|coords|href|target]';
return $init_array;
}
Original comment by sahar...@gmail.com
on 31 May 2010 at 6:16
Fantastic! Got it working, thank you!
Original comment by craig.ho...@ymail.com
on 1 Jun 2010 at 2:31
Hi, I've made all the settings mentioned above - but the plug-in still doesn't
want to work.
I use a fresh installation of WP 3.0.1 with the twentyten-theme and TinyMCE
Advanced 3.2.7.
Would you mind posting a step by step tutorial for this (I'm sure lots of
people would really appreciate it a there is no other image map plug-in for
wordpress...)
Thanks!
Original comment by tba...@gmail.com
on 15 Jan 2011 at 2:06
I'm using the Drupal version of this
(http://www.drupal.org/project/wysiwyg_imgmap) with the latest versions of
TinyMCE and imgmap, and I can't get titles to show up, even after modifying
'extended_valid_elements' as per the above:
'extended_valid_elements' =>
array('img[usemap|class|src|border=0|alt|title|hspace|vspace|width|height|align|
onmouseover|onmouseout|name],map[id|name],area[shape|alt|title|coords|href|targe
t]')
Any help? Thanks!
Original comment by aend...@gmail.com
on 24 Jan 2013 at 5:45
Original issue reported on code.google.com by
sahar...@gmail.com
on 5 Apr 2010 at 6:48