Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions admin/src/components/CKEditorInput/Configurator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ const {
TableColumnResize,
TableCaption,
WordCount,
Highlight
Highlight,
SourceEditing,
GeneralHtmlSupport
} = window.CKEDITOR;

const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
Expand All @@ -77,7 +79,9 @@ const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
TableColumnResize,
TableCaption,
WordCount,
StrapiMediaLib
StrapiMediaLib,
SourceEditing,
GeneralHtmlSupport
],
toolbar: [
'undo', 'redo',
Expand All @@ -88,7 +92,9 @@ const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
'|',
'link', 'strapiMediaLib', 'insertTable',
'|',
'bulletedList', 'numberedList'
'bulletedList', 'numberedList',
'|',
'sourceEditing',
],
heading: {
options: [
Expand Down Expand Up @@ -158,7 +164,9 @@ const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
TableColumnResize,
TableCaption,
WordCount,
StrapiMediaLib
StrapiMediaLib,
SourceEditing,
GeneralHtmlSupport
],
toolbar: [
'undo', 'redo',
Expand All @@ -169,7 +177,9 @@ const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
'|',
'link', 'strapiMediaLib', 'mediaEmbed', 'blockQuote', 'insertTable', 'codeBlock',
'|',
'bulletedList', 'numberedList', 'outdent', 'indent'
'bulletedList', 'numberedList', 'outdent', 'indent',
'|',
'sourceEditing',
],
heading: {
options: [
Expand Down Expand Up @@ -264,7 +274,9 @@ const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
TableCaption,
WordCount,
Highlight,
StrapiMediaLib
StrapiMediaLib,
SourceEditing,
GeneralHtmlSupport
],
toolbar: {
items: [
Expand All @@ -283,6 +295,8 @@ const CKEDITOR_BASE_CONFIG_FOR_PRESETS = {
'alignment',
'|',
'bulletedList', 'numberedList', 'todoList', 'outdent', 'indent',
'|',
'sourceEditing',
],
shouldNotGroupWhenFull: true
},
Expand Down
5 changes: 5 additions & 0 deletions admin/src/components/CKEditorInput/styles/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,10 @@ export const style = css`
transition-duration: 0.2s;
}
}

.ck-source-editing-area textarea {
font-size: 1.2rem;
overflow: auto;
}
}
`;