Page 1 of 1

[SOLVED] TinyMCE auto use of double quote when inserting images / href - disable

Posted: Mon May 26, 2008 5:03 pm
by mrjamie
Hi,

Is there a way to turn off the double quotes used when inserting images of hrefs? For example, if I use tinyMCE to insert an image if will produce something of the sorts....



How would one go about adjusting tinyMCE so that the code output would read



The reason for this is to allow compatibility for the boxover javascript module... possibly there is an alternative way to do this?

Any ideas are welcome, thank you.

Re: TinyMCE auto use of double quote when inserting images / href - disable?

Posted: Wed May 28, 2008 7:10 pm
by mrjamie
Solved by bypassing tinymce and creating a smarty modifier...

Code: Select all

<?php
function smarty_cms_modifier_stripq($string)
{
    return str_replace('"', "'", $string);
}
?>
...and chucking modifier.stripq.php in the plugins folder.  Now I can use {$event.event_details|stripq} for my calendar details and use the funky boxover module alongside the calendar.