gpt4 book ai didi

ckeditor - TYPO3 CKeditor 不渲染 javascript 链接

转载 作者:行者123 更新时间:2023-12-02 21:39:14 25 4
gpt4 key购买 nike

我使用的是 TYPO3 8.7.8,并且必须提供 JavaScript 链接来停用 Google Analytics。

链接应如下所示:

<a href="javascript:gaOptout()" onclick="alert('Google Analytics is now deactivated');">Deactivate Google Analytics</a>

不幸的是,该链接没有出现在前端,这意味着它只是 <p> 中的普通文本。标签。然而在后端一切都很好,它显示为链接......

这是我的 CKeditor 的 yaml 配置:

# Load default processing options
imports:
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" }

# Configuration for the editor
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
config:
allowedContent: true
linkJavaScriptLinksAllowed: true
contentsCss: ["EXT:rte_ckeditor/Resources/Public/Css/contents.css", "EXT:my_extension/Resources/Public/Stylesheets/styles.css", "EXT:my_extension/Resources/Public/Stylesheets/fonts.css"]
resize_enabled: true

stylesSet:
# block level styles
- { name: "Button Default", element: "a", attributes: { 'class': 'btn btn-default', 'role': 'button', 'aria-pressed': 'true'}}

format_tags: "p;h1;h2;h3;h4;h5;pre"

toolbarGroups:
- { name: styles, groups: [ styles, format ] }
- { name: basicstyles, groups: [ basicstyles ] }
- { name: paragraph, groups: [ list, indent, blocks, align ] }
- { name: links, groups: [ links ] }
- { name: clipboard, groups: [ clipboard, cleanup, undo ] }
- { name: editing, groups: [ spellchecker ] }
- { name: insert, groups: [ insert ] }
- { name: tools, groups: [ table, specialchar ] }
- { name: document, groups: [ mode ] }

justifyClasses:
- text-left
- text-center
- text-right
- text-justify

extraPlugins:
- justify

removePlugins:
- image

removeButtons:
- Anchor
- Underline
- Strike

buttons.:
link.:
queryParametersSelector.:
enabled: true

我在这里缺少什么?

最佳答案

我们刚刚遇到了同样的问题 - 我们为typo3编写了一个小链接处理程序,只允许 javascript:gaOptOut();链接。

在这里获取: https://www.infoworxx.de/download/ifx_linkhandler_googleAnalytics.zip

塞巴斯蒂安

关于ckeditor - TYPO3 CKeditor 不渲染 javascript 链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49897575/

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