diff --git a/editors/ckeditor/plugin.js b/editors/ckeditor/plugin.js index 10a9527fa7d81c7ddebb27228fad28844ad171f3..483c8da5fd6447894d69f06233a2f7f2a78e9cc1 100644 --- a/editors/ckeditor/plugin.js +++ b/editors/ckeditor/plugin.js @@ -136,7 +136,7 @@ // We have not selected any link element so lets create a new one. var range = selection.getRanges(1)[0]; if (range.collapsed) { - var content = (Drupal.settings.linkit.currentInstance.linkContent) ? Drupal.settings.linkit.currentInstance.linkContent : data.path; + var content = (Drupal.linkitCache.link_tmp_title) ? Drupal.linkitCache.link_tmp_title : data.path; var text = new CKEDITOR.dom.text(content , editor.document ); range.insertNode(text); range.selectNodeContents(text);