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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mrjamie

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

Post 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.
Last edited by mrjamie on Wed May 28, 2008 7:11 pm, edited 1 time in total.
mrjamie

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

Post 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.
Locked

Return to “CMSMS Core”