Hi,
I've created a form with text_format field which have #format value set to CkEditor:
$form['text'] = array(
'#type' => 'text_format',
'#title' => t('HTML'),
'#default_value' => $text,
'#attributes' => array('class' => array('input-settings')),
'#format' => 'ckeditor',
);
Almost everything works fine, but some of features in the CKEditor just freezing if I click on them and return this JavaScript error:
Uncaught TypeError: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'.
For example if I click on the hyperlink for the first time then it works correctly, but for the second time it return the error and freeze: http://prntscr.com/ils3he
Thanks for the help.