first commit
This commit is contained in:
commit
1218dd1517
12716 files changed
+989233
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Definitions of routes
|
||||
*/
|
||||
return [
|
||||
// Register RTE browse links wizard
|
||||
'rteckeditor_wizard_browse_links' => [
|
||||
'path' => '/rte/wizard/browselinks',
|
||||
'target' => \TYPO3\CMS\RteCKEditor\Controller\BrowseLinksController::class . '::mainAction'
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,42 @@
|
||||
# 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" }
|
||||
|
||||
# Add configuration for the editor
|
||||
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
||||
editor:
|
||||
config:
|
||||
|
||||
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, insertcharacters ] }
|
||||
- { name: document, groups: [ mode ] }
|
||||
|
||||
justifyClasses:
|
||||
- text-left
|
||||
- text-center
|
||||
- text-right
|
||||
- text-justify
|
||||
|
||||
extraPlugins:
|
||||
- justify
|
||||
- autolink
|
||||
|
||||
removePlugins:
|
||||
- image
|
||||
|
||||
removeButtons:
|
||||
- Anchor
|
||||
- Underline
|
||||
- Strike
|
||||
- Styles
|
||||
@@ -0,0 +1,33 @@
|
||||
# Add configuration for the editor for any configuration
|
||||
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
||||
editor:
|
||||
config:
|
||||
# the CSS file to be used inside the editor
|
||||
contentsCss: "EXT:rte_ckeditor/Resources/Public/Css/contents.css"
|
||||
# will be overridden by the record (if a language is set)
|
||||
defaultContentLanguage: "en"
|
||||
defaultLanguage: "en"
|
||||
# Allow any class or any data attribute in any tag
|
||||
extraAllowedContent: "*(*)[data-*]"
|
||||
height: 300
|
||||
width: "auto"
|
||||
toolbar: "Basic"
|
||||
uiColor: "#F8F8F8"
|
||||
removeDialogTabs: "image:advanced;link:advanced"
|
||||
# Ensure that special characters are not converted to HTML entities
|
||||
entities_latin: false
|
||||
entities: false
|
||||
stylesSet: []
|
||||
|
||||
# Configure global wordcount plugin defaults
|
||||
# Overwrite them in your RTE presets as it is necessary
|
||||
wordcount:
|
||||
showParagraphs: true
|
||||
showWordCount: true
|
||||
showCharCount: true
|
||||
countSpacesAsChars: true
|
||||
countHTML: false
|
||||
countLineBreaks: false
|
||||
maxWordCount: -1
|
||||
maxCharCount: -1
|
||||
pasteWarningDuration: 5000
|
||||
@@ -0,0 +1,12 @@
|
||||
# Register custom plugins for ckeditor
|
||||
editor:
|
||||
externalPlugins:
|
||||
typo3link: { resource: "EXT:rte_ckeditor/Resources/Public/JavaScript/Plugins/typo3link.js", route: "rteckeditor_wizard_browse_links" }
|
||||
showbrokenlinks: { resource: "EXT:rte_ckeditor/Resources/Public/JavaScript/Plugins/showbrokenlinks/plugin.js"}
|
||||
# This is a plugin, found here: https://github.com/ufdada/quicktable
|
||||
quicktable: { resource: "EXT:rte_ckeditor/Resources/Public/JavaScript/Plugins/quicktable/plugin.js" }
|
||||
autolinking: { resource: "EXT:rte_ckeditor/Resources/Public/JavaScript/Plugins/autolinking.js" }
|
||||
# softhyphen plugin for adding ctrl+dash support to insert a conditional word break
|
||||
softhyphen:
|
||||
resource: "EXT:rte_ckeditor/Resources/Public/JavaScript/Plugins/softhyphen/"
|
||||
enableShortcut: true
|
||||
@@ -0,0 +1,68 @@
|
||||
####
|
||||
# Example of what CKEditor can all bring
|
||||
###
|
||||
|
||||
# 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" }
|
||||
|
||||
# Add configuration for the editor
|
||||
# For complete documentation see http://docs.ckeditor.com/#!/api/CKEDITOR.config
|
||||
editor:
|
||||
config:
|
||||
# can be "default", but a custom stylesSet can be defined here, which fits TYPO3 best
|
||||
stylesSet:
|
||||
# block level styles
|
||||
- { name: "Orange title H2", element: "h2", styles: { color: "orange", background: "blue" } }
|
||||
- { name: "Orange title H3", element: "h3", styles: { color: "orange", background: "blue" } }
|
||||
- { name: "Quote / Citation", element: "blockquote" }
|
||||
- { name: "Code block", element: "code" }
|
||||
# Inline styles
|
||||
- { name: "Yellow marker", element: "span", styles: { background-color: "yellow" } }
|
||||
|
||||
format_tags: "p;h1;h2;h3;pre"
|
||||
|
||||
toolbarGroups:
|
||||
- { name: clipboard, groups: [clipboard, undo] }
|
||||
- { name: editing, groups: [find, selection, spellchecker] }
|
||||
- { name: links }
|
||||
- { name: insert }
|
||||
- { name: tools }
|
||||
- { name: table }
|
||||
- { name: tabletools }
|
||||
- { name: document, groups: [ mode, document, doctools ] }
|
||||
- { name: others }
|
||||
- "/"
|
||||
- { name: basicstyles, groups: [ basicstyles, align, cleanup ] }
|
||||
- { name: paragraph, groups: [ list, indent, blocks, align, bidi ] }
|
||||
- { name: specialcharacters, groups: [ insertcharacters ] }
|
||||
- "/"
|
||||
- { name: styles }
|
||||
|
||||
justifyClasses:
|
||||
- text-left
|
||||
- text-center
|
||||
- text-right
|
||||
- text-justify
|
||||
|
||||
extraPlugins:
|
||||
- justify
|
||||
- font
|
||||
- find
|
||||
- bidi
|
||||
- selectall
|
||||
- autolink
|
||||
- wordcount
|
||||
|
||||
removePlugins:
|
||||
- image
|
||||
|
||||
removeButtons:
|
||||
|
||||
# Allow s and u tag
|
||||
processing:
|
||||
allowTags:
|
||||
- s
|
||||
- u
|
||||
@@ -0,0 +1,17 @@
|
||||
# Load default processing options
|
||||
imports:
|
||||
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" }
|
||||
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" }
|
||||
|
||||
# Minimal configuration for the editor
|
||||
editor:
|
||||
config:
|
||||
toolbarGroups:
|
||||
- { name: basicstyles, groups: [ basicstyles] }
|
||||
- { name: clipboard, groups: [clipboard, undo] }
|
||||
removeButtons:
|
||||
- Anchor
|
||||
- Superscript
|
||||
- Subscript
|
||||
- Underline
|
||||
- Strike
|
||||
@@ -0,0 +1,100 @@
|
||||
# ****************************************************
|
||||
# Sets the proc options for all default configurations
|
||||
# ****************************************************
|
||||
|
||||
processing:
|
||||
mode: default
|
||||
# Tags that are allowed in the content in general
|
||||
allowTags:
|
||||
- a
|
||||
- abbr
|
||||
- acronym
|
||||
- address
|
||||
- article
|
||||
- big
|
||||
- blockquote
|
||||
- br
|
||||
- caption
|
||||
- cite
|
||||
- code
|
||||
- col
|
||||
- colgroup
|
||||
- dd
|
||||
- del
|
||||
- dfn
|
||||
- dl
|
||||
- div
|
||||
- dt
|
||||
- em
|
||||
- footer
|
||||
- header
|
||||
- h1
|
||||
- h2
|
||||
- h3
|
||||
- h4
|
||||
- h5
|
||||
- h6
|
||||
- hr
|
||||
- i
|
||||
- img
|
||||
- ins
|
||||
- kbd
|
||||
- label
|
||||
- li
|
||||
- nav
|
||||
- ol
|
||||
- p
|
||||
- pre
|
||||
- q
|
||||
- samp
|
||||
- section
|
||||
- small
|
||||
- span
|
||||
- strong
|
||||
- style
|
||||
- sub
|
||||
- sup
|
||||
- table
|
||||
- thead
|
||||
- tbody
|
||||
- tfoot
|
||||
- td
|
||||
- th
|
||||
- tr
|
||||
- tt
|
||||
- ul
|
||||
- var
|
||||
|
||||
## Tags that are allowed outside of paragraphs
|
||||
allowTagsOutside: [address, article, aside, blockquote, footer, header, hr, nav, section, div]
|
||||
|
||||
## allowed default attributes
|
||||
allowAttributes: [class, id, title, dir, lang, xml:lang, itemscope, itemtype, itemprop]
|
||||
|
||||
## CONTENT TO DATABASE
|
||||
HTMLparser_db:
|
||||
## STRIP ALL ATTRIBUTES FROM THESE TAGS
|
||||
## If this list of tags is not set, it will default to: b,i,u,br,center,hr,sub,sup,strong,em,li,ul,ol,blockquote,strike.
|
||||
## However, we want to keep xml:lang attribute on most tags and tags from the default list were cleaned on entry.
|
||||
noAttrib: br
|
||||
# Can be disabled if you trust ckeditor (If Automatic Content Formatting is enabled, this should be OK)
|
||||
# allowTags: %default%
|
||||
denyTags: img
|
||||
tags:
|
||||
hr:
|
||||
allowedAttribs:
|
||||
- class
|
||||
|
||||
## REMOVE OPEN OFFICE META DATA TAGS, WORD 2003 TAGS, LINK, META, STYLE AND TITLE TAGS, AND DEPRECATED HTML TAGS
|
||||
## We use this rule instead of the denyTags rule so that we can protect custom tags without protecting these unwanted tags.
|
||||
removeTags: [center, font, link, meta, o:p, sdfield, strike, style, title, u]
|
||||
|
||||
## PROTECT CUSTOM TAGS
|
||||
keepNonMatchedTags: protect
|
||||
|
||||
# HTML Sanitizer
|
||||
# `htmlSanitize = false | null` to disable individually
|
||||
htmlSanitize:
|
||||
# either preset name as declared in `$GLOBALS['TYPO3_CONF_VARS']['SYS']['htmlSanitizer']`
|
||||
# or class-name implementing interface `\TYPO3\HtmlSanitizer\Builder\BuilderInterface`
|
||||
build: default
|
||||
Reference in new issue
Block a user