(solved) pasting module reference into TinyMCE
Posted: Wed Oct 29, 2008 2:09 pm
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)?
{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)?