psmb / footnote
Neos CMS 的 CKeditor5 脚注插件
0.3
2019-11-26 12:48 UTC
Requires
- neos/neos: *
- dev-master
- 0.3
- 0.2
- 0.1
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/qs-6.11.0
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/shell-quote-1.7.3
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/async-2.6.4
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/url-parse-1.4.7
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/chownr-1.1.4
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/mout-1.2.3
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/shelljs-0.8.5
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/tar-4.4.19
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/lodash-4.17.21
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/y18n-3.2.2
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/ini-1.3.7
- dev-dependabot/npm_and_yarn/Resources/Private/Footnotes/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-09-09 07:37:49 UTC
README
本包为 Neos CMS 中 CKeditor5 集成提供脚注插件。
安装
- 切换到使用 CKeditor 5
composer require 'psmb/footnote'
- 在应支持脚注的节点属性上启用脚注按钮,例如
'Neos.NodeTypes:TextMixin':
properties:
text:
ui:
inline:
editorOptions:
formatting:
footnote: true
- 在需要收集和渲染脚注的内容集合上添加 Fusion 处理器(或编写自己的 Fusion 或 JS 解决方案),例如
prototype(Neos.Neos:PrimaryContent) {
@process.footnotes = Psmb.Footnote:FootnoteProcessor
}
- 可选地在后台为脚注添加一些样式,例如
.neos-backend span[data-footnote]:after {
content: '*';
color: orange;
border-bottom: orange solid 1px;
}