diff --git a/Resources/views/PagePartAdminTwigExtension/widget.html.twig b/Resources/views/PagePartAdminTwigExtension/widget.html.twig index a9e6a80..32f4894 100755 --- a/Resources/views/PagePartAdminTwigExtension/widget.html.twig +++ b/Resources/views/PagePartAdminTwigExtension/widget.html.twig @@ -100,9 +100,12 @@ } function disableCKEditors(){ - for ( instance in CKEDITOR.instances ){ - CKEDITOR.instances[instance].destroy(); - } + for ( instance in CKEDITOR.instances ){ + if ($('#' + CKEDITOR.instances[instance].name).hasClass('rich_editor')) { + CKEDITOR.instances[instance].destroy(); + + } + } } function enableCKEditors(){