mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
set minimum size in ckeditor
This commit is contained in:
parent
28a2c0ea0b
commit
f619171120
@ -16,6 +16,7 @@ import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
|
|||||||
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
|
import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
|
||||||
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
|
import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
|
||||||
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
|
import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
|
||||||
|
import "./index.scss";
|
||||||
|
|
||||||
export default class ClassicEditor extends ClassicEditorBase {}
|
export default class ClassicEditor extends ClassicEditorBase {}
|
||||||
|
|
||||||
@ -68,8 +69,8 @@ ClassicEditor.defaultConfig = {
|
|||||||
|
|
||||||
|
|
||||||
let Fields = [];
|
let Fields = [];
|
||||||
Fields.push.apply(Fields, document.querySelectorAll('textarea.ckeditor'));
|
Fields.push.apply(Fields, document.querySelectorAll('textarea[ckeditor]'));
|
||||||
Fields.push.apply(Fields, document.querySelectorAll('.cf-fields textarea'));
|
//Fields.push.apply(Fields, document.querySelectorAll('.cf-fields textarea'));
|
||||||
|
|
||||||
Fields.forEach(function(field) {
|
Fields.forEach(function(field) {
|
||||||
ClassicEditor
|
ClassicEditor
|
||||||
@ -81,4 +82,4 @@ Fields.forEach(function(field) {
|
|||||||
console.error( error.stack );
|
console.error( error.stack );
|
||||||
})
|
})
|
||||||
;
|
;
|
||||||
})
|
});
|
@ -0,0 +1,4 @@
|
|||||||
|
// set min height for ckeditor
|
||||||
|
.ck-editor__editable {
|
||||||
|
min-height: 150px;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user