Select a resource
Turn off TinyMCE editor with "Toggle Editor" checkbox
Add this content:
[[formit? &hooks=`redirect` &redirectTo=`[[~[[*id]]]]` &submitVar=`EventSchdRptYear`]]
<div>
[[EventSchdRptPH? &type=`agenda` &year=`2011`]]
<div id="ReportData">
[[+EventSchdRpt.Agenda.ph]]
</div>
</div>
[[$EventSchdRpt.paging.js.Tpl]]
Save the resource
Select another resource
Turn on TinyMCE editor with "Toggle Editor" checkbox
Add desired content
Save the resource
Select the first resource again
The content has been changed to this:
<p>[[formit? &hooks=`redirect` &redirectTo=`[[~[[*id]]]]` &submitVar=`EventSchdRptYear`]]</p>
<div>[[EventSchdRptPH? &type=`agenda` &year=`2011`]]
<div id="ReportData">[[+EventSchdRpt.Agenda.ph]]</div>
</div>
<p>[[$EventSchdRpt.paging.js.Tpl]]</p>
TinyMCE is adding html tags to the content because TinyMCE was turned on while editing the prior resource. The result is unwanted
<p></p> tags in the rendered page where the FormIt call is and unwanted
<p> </p> tags surrounding the pagination chunk and the content is pushed down in the page.
It seems to me that MODx Manager should remember the "Toggle Editor" setting for each individual resource.
Is there something that I can do to prevent this behavior?
[ed. note: cp@pcs last edited this post 12 years, 7 months ago.]