Commit 5af2c8ca authored by anon's avatar anon

Fixed small error when inserting link without any selection in ckeditor.

parent 48c3ac1c
......@@ -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 );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment