Project

General

Profile

Actions

Bug #45527

closed

RTE custom tags, automatically p-tags after saving

Added by Marcel Utz almost 12 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2013-02-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?

Actions

Also available in: Atom PDF