[wp-testers] Visual editor damages <map></map> HTML construct (3.2 beta1 nightly)
Frank Bueltge
frank at bueltge.de
Mon May 23 06:46:17 UTC 2011
Hi,
current you can add the html-tag to the TinyMce via Filter an a custom
function:
- function fb_change_mce_options($initArray) {
- // Comma separated string od extendes tags
- // Command separated string of extended elements
- $ext = 'map[name],area[title|href|shape|coords]';
-
- if ( isset( $initArray['extended_valid_elements'] ) ) {
- $initArray['extended_valid_elements'] .= ',' . $ext;
- } else {
- $initArray['extended_valid_elements'] = $ext;
- }
- // maybe; set tiny paramter verify_html
- //$initArray['verify_html'] = false;
-
- return $initArray;
- }
- add_filter('tiny_mce_before_init', 'fb_change_mce_options');
more hints to the filter of TinyMce:
http://wpengineer.com/1963/customize-wordpress-wysiwyg-editor/
Best regards
Frank
On Mon, May 23, 2011 at 3:11 AM, Andrew Nacin <wp at andrewnacin.com> wrote:
> On Sun, May 22, 2011 at 8:50 PM, Andrew Ozz <admin at laptoptips.ca> wrote:
>
> > This is actually due to wpautop.
> >
>
>
> It seems to me like we should be including <map> as one of the newline
> preservation tags. Currently we do this for <script> and <style> (and
> should
> probably also do it for <math> -
> http://core.trac.wordpress.org/ticket/13340.)
> Thoughts?
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
More information about the wp-testers
mailing list