Last active
February 24, 2023 10:05
-
-
Save jpmschuler/6fe1c49e746c9a7daa74014abac7596b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor: | |
config: | |
disallowedContent: "script; style; *[style]; *{*}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Plugins.yaml" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Processing.yaml" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Cleanup.yaml" } | |
# Add configuration for the editor | |
editor: | |
config: | |
extraAllowedContent: | |
- '*(*)[data-*]' | |
contentsCss: null | |
format_tags: "h2;h3;h4;p;address" | |
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: [ find ] } | |
- { name: insert, groups: [ insert ] } | |
- { name: tools, groups: [ table ] } | |
- { name: document, groups: [ mode ] } | |
justifyClasses: | |
- align-left | |
- align-center | |
extraPlugins: | |
- justify | |
removePlugins: | |
removeButtons: | |
- Strike | |
- JustifyBlock | |
- JustifyRight | |
- Superscript | |
- Subscript | |
- HorizontalRule | |
- Styles | |
- Anchor | |
- Blockquote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Plugins.yaml" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Processing.yaml" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Cleanup.yaml" } | |
# Add configuration for the editor | |
editor: | |
config: | |
extraAllowedContent: | |
- '*(*)[data-*]' | |
- dd | |
- dl | |
- dt | |
contentsCss: null | |
format_tags: "h2;h3;h4;p;address" | |
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: [ find ] } | |
- { name: insert, groups: [ insert ] } | |
- { name: tools, groups: [ table ] } | |
- { name: document, groups: [ mode ] } | |
justifyClasses: | |
- align-left | |
- align-center | |
extraPlugins: | |
- justify | |
removePlugins: | |
removeButtons: | |
- Strike | |
- JustifyLeft | |
- JustifyCenter | |
- JustifyBlock | |
- JustifyRight | |
- Superscript | |
- Subscript | |
- HorizontalRule | |
- Styles | |
- Anchor | |
- Blockquote | |
- Image | |
- Table | |
- SpecialChar | |
- Format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Processing.yaml" } | |
- { resource: "EXT:mysitepackage/Configuration/RTE/Cleanup.yaml" } | |
# Add configuration for the editor | |
editor: | |
config: | |
toolbarGroups: | |
- { name: basicstyles, groups: [ basicstyles ] } | |
- { name: paragraph, groups: [ list ] } | |
- { name: clipboard, groups: [ cleanup ] } | |
- { name: document, groups: [ mode ] } | |
justifyClasses: | |
- align-left | |
- align-center | |
stylesSet: | |
- { name: "align-center", element: ['h2', 'h3', 'h4','h5', 'h6', 'p'], attributes: { 'class': 'align-center' }} | |
- { name: "align-normal", element: ['h2', 'h3', 'h4','h5', 'h6', 'p'], attributes: { 'class': 'none' }} | |
extraPlugins: | |
removePlugins: | |
removeButtons: | |
- Strike | |
- Blockquote | |
- JustifyBlock | |
- JustifyRight | |
- Superscript | |
- Subscript | |
- HorizontalRule | |
- Cut | |
- Copy | |
- Paste | |
- PasteFromWord | |
- PasteText | |
- Styles | |
- Anchor | |
- Italic | |
- Underline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RTE.default.preset = EditorFull | |
RTE.config.tt_news.bodytext.preset = EditorFull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P > | |
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt,li,img | |
lib.parseFunc_RTE.nonTypoTagStdWrap.HTMLparser.tags { | |
a.fixAttrib.onclick.unset = 1 | |
span.fixAttrib.onclick.unset = 1 | |
span.fixAttrib.style.unset = 1 | |
p.allowedAttribs = class | |
h1.fixAttrib.class.unset = 1 | |
h2.fixAttrib.class.unset = 1 | |
h3.fixAttrib.class.unset = 1 | |
h4.fixAttrib.class.unset = 1 | |
table.allowedAttribs = class | |
table.fixAttrib.style.unset = 1 | |
tr.allowedAttribs = class | |
th.fixAttrib.style.unset = 1 | |
td.fixAttrib.style.unset = 1 | |
} | |
lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list > | |
lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.removeTags = h1,h2,h3,h4,h5,p | |
lib.parseFunc_RTE.externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, p,pre,ol, section, table, ul | |
lib.parseFunc_RTE.externalBlocks.p.stripNL = 1 | |
lib.parseFunc_RTE.externalBlocks.p.stdWrap.parseFunc > | |
lib.parseFunc_RTE.externalBlocks.p.stdWrap.parseFunc =< lib.parseFunc | |
lib.parseFunc_RTE.externalBlocks.ul > | |
lib.parseFunc_RTE.externalBlocks.ul.stripNL = 1 | |
lib.parseFunc_RTE.externalBlocks.ul.stdWrap.parseFunc > | |
lib.parseFunc_RTE.externalBlocks.ul.stdWrap.parseFunc =< lib.parseFunc | |
lib.parseFunc_RTE.externalBlocks.ul.stdWrap.HTMLparser.removeTags = h1,h2,h3,h4,h5,p | |
lib.parseFunc_RTE.externalBlocks.ol > | |
lib.parseFunc_RTE.externalBlocks.ol.stripNL = 1 | |
lib.parseFunc_RTE.externalBlocks.ol.stdWrap.parseFunc > | |
lib.parseFunc_RTE.externalBlocks.ol.stdWrap.parseFunc =< lib.parseFunc | |
lib.parseFunc_RTE.externalBlocks.ol.stdWrap.HTMLparser.removeTags = h1,h2,h3,h4,h5,p | |
lib.parseFunc_RTE.externalBlocks.table.stdWrap > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load default processing options | |
imports: | |
- { resource: "EXT:rte_ckeditor_image/Configuration/RTE/Plugin.yaml" } | |
- { resource: "EXT:rte_ckeditor_dl/Configuration/RTE/Plugin.yaml" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
editor: | |
config: | |
extraAllowedContent: '*(*)[data-*]' | |
# Add configuration for the processing | |
processing: | |
mode: default | |
# Tags that are allowed in the content in general | |
allowAttributes: [class, title, alt] | |
allowTags: | |
- a | |
- b | |
- u | |
- br | |
- div | |
- h2 | |
- h3 | |
- h4 | |
- h5 | |
- hr | |
- i | |
- img | |
- li | |
- link | |
- ol | |
- p | |
- table | |
- thead | |
- tbody | |
- td | |
- th | |
- tr | |
- ul | |
- cite | |
- abbr | |
- acronym | |
- code | |
- dfb | |
- q | |
- samp | |
- tt | |
- var | |
## Tags that are allowed outside of paragraphs | |
allowTagsOutside: | |
- img | |
- hr | |
- div | |
- p | |
- ol | |
- ul | |
- li | |
- dd | |
- dl | |
- dt | |
- blockquote | |
dontConvBRToParagraph: 1 | |
## CONTENT TO DATABASE | |
HTMLparser_db: | |
## STRIP ALL ATTRIBUTES FROM THESE TAGS | |
noAttrib: b, u, br, center, hr, sub, sup, strong, em, li, ul, ol, blockquote, strike, h2, h3, h4, h5 | |
## PROTECT CUSTOM TAGS | |
keepNonMatchedTags: protect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment