Quote from: hotdiggity at Jun 22, 2010, 05:34 AM
Great idea! Replaces [*content*] tag in template then?
The current cleaner in the above plugin will go through content that looks like this:
<p>This is my content. [[*MyTV]]</p>
<p>[[$MyChunk]] </p>
<p>
[[MySnippetCall? ¶m=`1`]]
</p>
<p>More content...</p>
And then store it in the database like this:
<p>This is my content. [[*MyTV]]</p>
[[$MyChunk]]
[[MySnippetCall? ¶m=`1`]]
<p>More content...</p>
We don’t use modx tags within the content very often, but when we do it’s often a pain. TinyMCE wraps them with <p> tags and can make some of the code ugly or even mess it up. Turning off the forced <p> tags isn’t always easy or a good option.
I couldn’t get the $_POST or scriptProperties to work with the latest Revo. That’s why it’s a database write after the content has been saved. I don’t think this will work if there are line breaks inside of your modx tag.