Bug #45527
closedRTE custom tags, automatically p-tags after saving
0%
Description
Adding custom tags to RTE in TSConfig like this:
RTE.default {
proc {
allowTags := addToList(button,form)
allowTagsOutside := addToList(button,form)
denyTags := removeFromList(button,form)
entryHTMLparser_db {
allowTags < RTE.default.proc.allowTags
}
}
}
and this in Typoscript Setup:
lib.parseFunc_RTE.allowTags := addToList(button,form)
Adding the following code in the HTML source code, by clicking the "toggle text mode" button first and then adding the code:
<p>text</p><form action="index.php" method="post"><button>button</button></form>
After saving I got this:
<p>text</p><p></p><form action="index.php" method="post"><button>button</button></form><p></p>
How can I disable this automatically added p-tags?
Updated by Stanislas Rolland over 11 years ago
Use:
RTE.default.proc.blockElementList = PRE,UL,OL,H1,H2,H3,H4,H5,H6,ADDRESS,DL,DD,HEADER,SECTION,FOOTER,NAV,ARTICLE,ASIDE,FORM,BUTTON
Updated by Stanislas Rolland over 11 years ago
- Status changed from New to Needs Feedback
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
6.0.3) - Is Regression set to No
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.