I have created a Dyanmic Content Type, with a few PropertyString properties, and one PropertyXhtmlString.
When I try and create one, it works fine if the content of the editor has one set of "<p> </p>", however, as soon as I create a new Paragraph, I get the following Javascript errors:
"Unterminated string literal"
and
"OnClick is not defined"
I think this is the onClick it's trying to execute:
function OkClick() { EPi.GetDialog().Close('<span classid="b30218a7-77fc-43dd-a844-81935aa9b35e" dynamicclass="Accordion Item" state="<p>Vestibulum dictum laoreet magna, vel mollis lorem facilisis ac. Suspendisse potenti. Sed dolor nunc, sagittis ac tristique tincidunt, elementum sollicitudin lorem.Vestibulum dictum laoreet magna,</p> <p>vel mollis lorem facilisis ac. Suspendisse potenti. Sed dolor nunc, sagittis ac tristique tincidunt, elementum sollicitudin lorem.</p>|sdfs|sdfds|Plan your meals in advance" hash="KkfbN0EihwdD0YE/K6ZDplvPTxVGYzgiERZwJD3MWLk=" disabled="disabled" contentEditable="false" class="dynamiccontent">{DynamicContent:Accordion Item}</span>'); }
(taken from Firebug)
To be clear, I don't get this error when there is only one para in the editor (and I can even add other stying like bold/underline etc to the text when there is only one para
Hi,
Strange one this:
I have created a Dyanmic Content Type, with a few PropertyString properties, and one PropertyXhtmlString.
When I try and create one, it works fine if the content of the editor has one set of "<p> </p>", however, as soon as I create a new Paragraph, I get the following Javascript errors:
"Unterminated string literal"
and
"OnClick is not defined"
I think this is the onClick it's trying to execute:
function OkClick()
{
EPi.GetDialog().Close('<span classid="b30218a7-77fc-43dd-a844-81935aa9b35e" dynamicclass="Accordion Item" state="<p>Vestibulum dictum laoreet magna, vel mollis lorem facilisis ac. Suspendisse potenti. Sed dolor nunc, sagittis ac tristique tincidunt, elementum sollicitudin lorem.Vestibulum dictum laoreet magna,</p>
<p>vel mollis lorem facilisis ac. Suspendisse potenti. Sed dolor nunc, sagittis ac tristique tincidunt, elementum sollicitudin lorem.</p>|sdfs|sdfds|Plan your meals in advance" hash="KkfbN0EihwdD0YE/K6ZDplvPTxVGYzgiERZwJD3MWLk=" disabled="disabled" contentEditable="false" class="dynamiccontent">{DynamicContent:Accordion Item}</span>');
}
To be clear, I don't get this error when there is only one para in the editor (and I can even add other stying like bold/underline etc to the text when there is only one para