Page 1 of 1

(solved) pasting module reference into TinyMCE

Posted: Wed Oct 29, 2008 2:09 pm
by turniphead
I just finished coding a module that makes image galleries and i call it like this:
{cms_module module="mygal" gallery="test"}

For convenience of other users, I put the code to paste for each gallery in the module's admin area, but if i copy {cms_module module="mygal" gallery="test"} and paste it into the page content via tinyMCE it comes out as {cms_module}

I figured out that the quote chars cause the problem, and I can leave them out if the parameters have no spaces, but if i had a scenario where the gallery has a space in it, I'm in trouble. Is there anything I can do (without resorting to the HTML view in tinyMCE)?

Re: pasting module reference into TinyMCE

Posted: Thu Oct 30, 2008 3:42 pm
by turniphead
I still haven't found a solution to this. Does anyone have an idea?
Thanks.
Latest version of cmsmadesimple on a LAMP config by the way.

Re: pasting module reference into TinyMCE

Posted: Thu Oct 30, 2008 5:51 pm
by alby
Change from "XX" to 'XX'

Alby

Re: (solved) pasting module reference into TinyMCE

Posted: Fri Oct 31, 2008 11:33 am
by turniphead
I thought that was one of the first things I tried, but obviously not. I tried it now and it works. Sorry for the silly question.