summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2013-03-08 14:25:53 (GMT)
committerEmil Stjerneman2013-03-08 14:25:53 (GMT)
commit5af2c8caf3230e820b047f610f3b012461e0bb28 (patch)
tree30fe7d742e390e4f1181b005b66ec49c065e93c6
parent48c3ac1c9fab1e754431d6d7bb08839c8a488758 (diff)
Fixed small error when inserting link without any selection in ckeditor.
-rw-r--r--editors/ckeditor/plugin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/ckeditor/plugin.js b/editors/ckeditor/plugin.js
index 10a9527..483c8da 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);