Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295585

CkEditor works not correctly then it used on the form

$
0
0

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.


Viewing all articles
Browse latest Browse all 295585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>