2 things:
1. Recently, I saw an FCKeditor on a site that created custom attributes in paragraph tags.
For example: I typed some text and hit enter. When clicked on "source" to see the HTML, I see
<p class="areaX">text</p>
I've not been able to find any explanation of how to do this. Can anyone help me?
2. This is related - I want all user text to be enclosed by a <div> with a class name. I don't want the user to be able to see it or edit it.
The pages are being created by a CMS, so I can't actually write the <div> into the page ahead of time. The editor has to do it.
Any ideas?
Thank you.
1. Recently, I saw an FCKeditor on a site that created custom attributes in paragraph tags.
For example: I typed some text and hit enter. When clicked on "source" to see the HTML, I see
<p class="areaX">text</p>
I've not been able to find any explanation of how to do this. Can anyone help me?
2. This is related - I want all user text to be enclosed by a <div> with a class name. I don't want the user to be able to see it or edit it.
The pages are being created by a CMS, so I can't actually write the <div> into the page ahead of time. The editor has to do it.
Any ideas?
Thank you.