Project

General

Profile

Actions

Bug #45527

closed

RTE custom tags, automatically p-tags after saving

Added by Marcel Utz about 11 years ago. Updated over 10 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 #1

Updated by Stanislas Rolland almost 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

Actions #2

Updated by Stanislas Rolland almost 11 years ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Alexander Opitz over 10 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.

Actions

Also available in: Atom PDF