(solved) pasting module reference into TinyMCE

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.
Post Reply
turniphead
Forum Members
Forum Members
Posts: 40
Joined: Thu Jul 31, 2008 12:16 pm

(solved) pasting module reference into TinyMCE

Post 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)?
Last edited by turniphead on Fri Oct 31, 2008 11:32 am, edited 1 time in total.
turniphead
Forum Members
Forum Members
Posts: 40
Joined: Thu Jul 31, 2008 12:16 pm

Re: pasting module reference into TinyMCE

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

Re: pasting module reference into TinyMCE

Post by alby »

Change from "XX" to 'XX'

Alby
turniphead
Forum Members
Forum Members
Posts: 40
Joined: Thu Jul 31, 2008 12:16 pm

Re: (solved) pasting module reference into TinyMCE

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

Return to “CMSMS Core”