mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
ckeditor improve textarea detection
This commit is contained in:
parent
142f8bdfb5
commit
43a8373a7c
@ -31,7 +31,7 @@ class CKEditorExtension extends AbstractTypeExtension
|
||||
{
|
||||
$resolver->setDefaults([
|
||||
'attr' => [
|
||||
'class' => 'ck ck-editor snippet-markdown'
|
||||
'class' => 'ckeditor snippet-markdown'
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
@ -66,7 +66,10 @@ ClassicEditor.defaultConfig = {
|
||||
language: 'fr'
|
||||
};
|
||||
|
||||
let Fields = document.querySelectorAll('textarea');
|
||||
|
||||
let Fields = [];
|
||||
Fields.push.apply(Fields, document.querySelectorAll('textarea.ckeditor'));
|
||||
Fields.push.apply(Fields, document.querySelectorAll('.cf-fields textarea'));
|
||||
|
||||
Fields.forEach(function(field) {
|
||||
ClassicEditor
|
||||
|
Loading…
x
Reference in New Issue
Block a user