gpt4 book ai didi

TYPO3更新: cannot find deprecated RTE properties

转载 作者:行者123 更新时间:2023-12-02 04:26:08 26 4
gpt4 key购买 nike

我想从 TYPO3 4.7.5 更新到 TYPO3 4.7.10。现在我进入了升级向导,它显示:

Deprecated RTE properties in Page TSconfig

The following Page TSconfig RTE properties are deprecated since TYPO3 4.6 and will be removed in TYPO3 6.0.

Deprecated property Use instead
disableRightClick contextMenu.disable
disableContextMenu contextMenu.disable
hidePStyleItems buttons.formatblock.removeItems
hideFontFaces buttons.fontstyle.removeItems
fontFace buttons.fontstyle.addItems
hideFontSizes buttons.fontsize.removeItems
classesCharacter buttons.textstyle.tags.span.allowedClasses
classesParagraph buttons.blockstyle.tags.div.allowedClasses
classesTable buttons.blockstyle.tags.table.allowedClasses
classesTD buttons.blockstyle.tags.td.allowedClasses
classesImage buttons.image.properties.class.allowedClasses
classesLinks buttons.link.properties.class.allowedClasses
blindImageOptions buttons.image.options.removeItems
blindLinkOptions buttons.link.options.removeItems
defaultLinkTarget buttons.link.properties.target.default
fontSize buttons.fontsize.addItems
RTE.default.classesAnchor RTE.default.buttons.link.properties.class.allowedClasses RTE.default.classesAnchor.default.[link-type] RTE.default.buttons.link.[link-type].properties.class.default mainStyleOverride contentCSS mainStyleOverride_add.[key] contentCSS mainStyle_font contentCSS mainStyle_size contentCSS
mainStyle_color contentCSS mainStyle_bgcolor contentCSS
inlineStyle.[any-keystring] contentCSS ignoreMainStyleOverride n.a. disableTYPO3Browsers buttons.image.TYPO3Browser.disabled and buttons.link.TYPO3Browser.disabled
showTagFreeClasses buttons.blockstyle.showTagFreeClasses and buttons.textstyle.showTagFreeClasses
disablePCexamples buttons.blockstyle.disableStyleOnOptionLabel and buttons.textstyle.disableStyleOnOptionLabel You are currently using some of these properties on 1 pages (including deleted and hidden pages).

Pages id's: 2

This wizard cannot update the following properties, some of which are present on those pages:

Deprecated property fontSize RTE.default.classesAnchor
RTE.default.classesAnchor.default.[link-type] mainStyleOverride
mainStyleOverride_add.[key] mainStyle_font mainStyle_size
mainStyle_color mainStyle_bgcolor inlineStyle.[any-keystring]
ignoreMainStyleOverride disableTYPO3Browsers showTagFreeClasses
disablePCexamples

Therefore, the Page TSconfig column of those pages will need to be updated manually.

Only page records were searched for deprecated properties. However, such properties can also be used in BE group and BE user records (prepended with page.). These are not searched nor updated by this wizard.

Page TSconfig may also be included from external files. These are not updated by this wizard. If required, the update will need to be done manually.

Note also that deprecated properties have been replaced in default configurations provided by htmlArea RTE

我找到了一个页面 TS 配置:

RTE.classes{
highlight{
name = newStyle
value = color:#636466; font-size:15px;
}
brown{
name = braun
value = color:#9A3811;
}
}

RTE.default{
ignoreMainStyleOverride = 1
useCSS = 1
showTagFreeClasses = 1
contentCSS = fileadmin/templates/css/rte.css
buttons {
blockstyle.tags.div.allowedClasses := addToList(highlight, brown)
blockstyle.tags.p.allowedClasses := addToList(highlight, brown)
textstyle.tags.span.allowedClasses := addToList(highlight, brown)
}
proc.allowedClasses := addToList(highlight, brown)
}

我把它改成了

RTE.classes{
highlight{
name = newStyle
value = color:#636466; font-size:15px;
}
brown{
name = braun
value = color:#9A3811;
}
}

RTE.default{
useCSS = 1
contentCSS = fileadmin/templates/css/rte.css
buttons {
blockstyle.showTagFreeClasses = 1
blockstyle.tags.div.allowedClasses := addToList(highlight, brown)
blockstyle.tags.p.allowedClasses := addToList(highlight, brown)
textstyle.showTagFreeClasses = 1
textstyle.tags.span.allowedClasses := addToList(highlight, brown)
}
proc.allowedClasses := addToList(highlight, brown)
}

但是升级向导仍然提示。我查看了主 TS、用户 TS、用户组 TS、数据库导出,但没有使用任何提到的属性。我添加的样式也不再起作用了......

已弃用的属性在哪里?我怎样才能找到它?

最佳答案

我建议在数据库页面表中进行手动搜索,以使用 TSconfig 查找页面:

SELECT uid, TSconfig FROM pages WHERE TSconfig!='';

如果这不会给您带来所需的结果,请在扩展程序中使用 grep 进行设置:

find typo3conf/ext/ -type f -name ext_*\.php -exec egrep -H -n '(addPageTSConfig|addUserTSConfig)' {} \;

RTE 的 TSconfig 弃用处理是在以下位置完成的:tx_rtehtmlarea_deprecatedRteProperties::getPagesWithDeprecatedRteProperties()

此类可以在 typo3/sysext/rtehtmlarea/hooks/install/class.tx_rtehtmlarea_deprecatedrteproperties.php

中找到

关于TYPO3更新: cannot find deprecated RTE properties,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15813180/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com