Commit 874908e2 authored by anon's avatar anon

*** empty log message ***

parent aa190c7a
......@@ -23,36 +23,9 @@ Drupal.wysiwyg.plugins["linkit_tinymce"] = {
// Open dialogue.
Linkit.openDialog(settings.dialog, options);
},
attach: function(content, settings, instanceId) {
/*
$('#edit-body_linkit_tinymce').removeClass('mceButtonEnabled').addClass('mceButtonDisabled');
function addEvents(win) {
if (win.contentWindow) {
win = win.contentWindow;
}
$(win.document).bind("mouseup", function() {
var selection = this.getSelection();
if(selection == "") {
$('#edit-body_linkit_tinymce').removeClass('mceButtonEnabled').addClass('mceButtonDisabled');
} else {
$('#edit-body_linkit_tinymce').removeClass('mceButtonDisabled').addClass('mceButtonEnabled');
}
});
}
var frames = document.getElementsByTagName("iframe");
for (var i=0; i < frames.length; i++) {
addEvents(frames[i]);
}
*/
return content;
}
isNode: function(node) {
return ($(node).is('a'));
}
};
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