mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
clean ckeditor file
This commit is contained in:
parent
527b658ca0
commit
5d533103dc
@ -1,18 +1,10 @@
|
||||
import ClassicEditorBase from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
|
||||
import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials';
|
||||
import MarkdownPlugin from '@ckeditor/ckeditor5-markdown-gfm/src/markdown';
|
||||
//import UploadAdapterPlugin from '@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter';
|
||||
//import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
|
||||
import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
|
||||
import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
|
||||
import BlockQuotePlugin from '@ckeditor/ckeditor5-block-quote/src/blockquote';
|
||||
//import EasyImagePlugin from '@ckeditor/ckeditor5-easy-image/src/easyimage';
|
||||
import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
|
||||
//import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
|
||||
//import ImageCaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption';
|
||||
//import ImageStylePlugin from '@ckeditor/ckeditor5-image/src/imagestyle';
|
||||
//import ImageToolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar';
|
||||
//import ImageUploadPlugin from '@ckeditor/ckeditor5-image/src/imageupload';
|
||||
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
|
||||
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
|
||||
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
|
||||
@ -23,18 +15,10 @@ export default class ClassicEditor extends ClassicEditorBase {}
|
||||
ClassicEditor.builtinPlugins = [
|
||||
EssentialsPlugin,
|
||||
MarkdownPlugin,
|
||||
// UploadAdapterPlugin,
|
||||
// AutoformatPlugin,
|
||||
BoldPlugin,
|
||||
ItalicPlugin,
|
||||
BlockQuotePlugin,
|
||||
// EasyImagePlugin,
|
||||
HeadingPlugin,
|
||||
// ImagePlugin,
|
||||
// ImageCaptionPlugin,
|
||||
// ImageStylePlugin,
|
||||
// ImageToolbarPlugin,
|
||||
// ImageUploadPlugin,
|
||||
LinkPlugin,
|
||||
ListPlugin,
|
||||
ParagraphPlugin
|
||||
@ -50,26 +34,18 @@ ClassicEditor.defaultConfig = {
|
||||
'link',
|
||||
'bulletedList',
|
||||
'numberedList',
|
||||
// 'uploadImage',
|
||||
'blockQuote',
|
||||
'undo',
|
||||
'redo'
|
||||
]
|
||||
},
|
||||
// image: {
|
||||
// toolbar: [
|
||||
// 'imageStyle:full',
|
||||
// 'imageStyle:side',
|
||||
// '|',
|
||||
// 'imageTextAlternative'
|
||||
// ]
|
||||
// },
|
||||
language: 'fr'
|
||||
};
|
||||
|
||||
|
||||
let Fields = [];
|
||||
Fields.push.apply(Fields, document.querySelectorAll('textarea[ckeditor]'));
|
||||
// enable for custom fields
|
||||
//Fields.push.apply(Fields, document.querySelectorAll('.cf-fields textarea'));
|
||||
|
||||
Fields.forEach(function(field) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user