Project

General

Profile

Actions

Bug #25064

closed

Span tags removed from RTE after saving content

Added by Emile Blume almost 14 years ago. Updated over 12 years ago.

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

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Span tags removed from RTE after saving content

This is an older bug but a fix was not included in TYPO3 4.5.
http://bugs.typo3.org/view.php?id=16760
(issue imported from #M17625)

Actions #1

Updated by Stanislas Rolland almost 14 years ago

The patch for issue #0016760 was indeed included in TYPO3 4.5 in revision 9867.

Actions #2

Updated by Stanislas Rolland over 13 years ago

  • Category set to RTE (rtehtmlarea + ckeditor)
  • Target version deleted (0)
  • TYPO3 Version set to 4.5
Actions #3

Updated by Stanislas Rolland over 13 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Stanislas Rolland

I think this issue was fixed. If you still encounter this issue, please explain how to reproduce.

Actions #4

Updated by Stanislas Rolland about 13 years ago

No feedback.

Closing the issue.

Note that the span tag may very well be removed if it has no attribute. If none of the classes specified on the class attribute are allowed, they will all be removed. The class attribute itself will therefore be removed. If it was the only attribute, the span tag is removed.

Actions #5

Updated by Stanislas Rolland about 13 years ago

  • Status changed from Needs Feedback to Closed
Actions #6

Updated by Vasyl Mosiychuk over 12 years ago

Hello, Stanislas!

I need to SPAN-tag stored with the attributes and without attributes

Help me...

H3-tags in a SPAN-tag is stored ...

<h3>My <span>Header</span> text</h3>

..., removes SPAN-tags in P-tags after saving

<p class="headerline">My <span>header line</span> text</p>

SPAN-tag is stored ...

<p class="headerline">My <span class="color">header line</span> text</p>

RTE {
    classes {
        heading {
            name = My heading 
            value = font-weight: bold; margin-bottom: 20px;
        }
    }
    default {
        contentCSS = fileadmin/layout/css/myrtestyle.css
        showTagFreeClasses = 1
        showButtons := addToList(chMode)
        allowTags := addToList (span)
        removeTags := removeFromList (span)
        classesParagraph := addToList (heading)
        proc {
            allowTags := addToList (span)
            allowTagsInTypolists := removeFromList (span)
            allowTagsOutside := addToList (sapn)
            allowedClasses := addToList (heading)
            removeTags := removeFromList (span)
            dontUndoHSC_db = 1
            dontHSC_rte = 1
            HTMLparser_rte {
                allowTags := addToList (sapn)
                removeTags := removeFromList (span)
            }
            entryHTMLparser_db {
                allowTags := addToList (sapn)
                allowTagsOutside := addToList (sapn)
                allowTagsInTypolists := removeFromList (span)
                removeTags := removeFromList (span)
                rmTagIfNoAttrib := removeFromList (span)
                keepNonMatchedTags = protect
                tags {
                    span >
                    p >
                }
            }
        }
        buttons {
            formatblock {
                removeItems := addToList(pre, address, article, aside, blockquote, div, footer, header, nav, section, p)
            }
            blockstyle {
                showTagFreeClasses = 1
                tags {
                    p {
                        allowedClasses := addToList (heading)
                    }
                }
            }
        }
    }
}

I need to SPAN-tag stored with the attributes and without attributes

Stanislas Rolland wrote:

No feedback.

Closing the issue.

Note that the span tag may very well be removed if it has no attribute. If none of the classes specified on the class attribute are allowed, they will all be removed. The class attribute itself will therefore be removed. If it was the only attribute, the span tag is removed.

Actions #7

Updated by Stanislas Rolland over 12 years ago

Hi Vasyl,

I need to SPAN-tag stored with the attributes and without attributes

Inside paragraphs, span tags without attributes are removed. This is not currently configurable.

If you need this to be configurable, please make a feature request and explain why it is useful.

Regards,
Stanislas

Actions

Also available in: Atom PDF