如何使 TYPO3 RTE 块样式在 Edge 中工作?

How can I make TYPO3 RTE blockstyles work in Edge?

我有一个非常奇怪的问题。我在我的 TYPO3 网站的 RTE 中添加了一个 blockstyle。除了 Edge 之外,它在任何地方都可以正常工作。即使在 IE 11 中它也能正常工作。 在 Edge 中,blockstyle 部分一直处于非活动状态(灰色)。 当我将光标放入已经具有块样式的文本时,它显示 "unknown block style".

我很困惑,到目前为止还没有发现有关 Edge 处理 RTE 块样式不同的信息。是我的代码有误还是 Edge 的错误?

我的代码在RTE.ts:

    RTE {
    default {
        contentCSS = path/to/RTE.css
        showButtons = blockstylelabel, blockstyle, formatblock, bold, orderedlist, unorderedlist, insertcharacter, link, findreplace, chMode, removeformat, undo, redo, about
        buttons {
            formatblock {
                removeItems = h4, h5, h6, pre, address, article, blockquote, footer, header, nav, div, aside, section, container
            }            
        }
    }
}
# configuration for introtext blockstyle
RTE.default.buttons.blockstyle.allowedClasses := addToList(introtext)
RTE.default.proc.allowedClasses := addToList(introtext)
RTE.classes.introtext.name = Introtext

# configuration for checkmarks blockstyle
RTE.default.buttons.blockstyle.allowedClasses := addToList(checkmarks)
RTE.default.proc.allowedClasses := addToList(checkmarks)
RTE.classes.checkmarks.name = USP Liste

RTE.css

中的代码
    /* Block styles */

p.introtext {
    font-size: 24px;
}

ul.checkmarks {
    list-style: none;
    padding-left: 1em;
}

这看起来像是 Bug,应该由 TYPO3 核心团队修复。 RTE 不应 has/need 浏览器特定配置。

您可以在此处报告错误: https://forge.typo3.org/projects/typo3cms-core/issues (您需要使用 typo3.org 帐户登录。在页面显示 "new Issue" 按钮之前。

以下是可帮助开发人员更快找到问题的列表: 1) TYPO3 版本。 (见关于模块) 2) 安装的扩展(如果您怀疑它们与 RTE 交互) 3) 可能 Javascript 错误。 (按 F12 并单击选项卡 "Console") 4) 重现问题的步骤。

TYPO3 问题已关闭,评论如下:

We are sorry, but we close this issue as now TYPO3 uses CKEditor and RTEHtmlarea is no more supported by TYPO3 .

RTEHtmlarea development has stopped - it has been decoupled from the core and its code is available on GitHub: https://github.com/FriendsOfTYPO3/rtehtmlarea

If you still need this fixed please create a PR on GitHub