Socket
Socket
Sign inDemoInstall

summernote-list-of-links

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

summernote-list-of-links - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "summernote-list-of-links",
"version": "1.0.2",
"version": "1.0.3",
"description": "A plugin for the Summernote WYSIWYG editor, that lets you choose from an external list of links, provided as json.",

@@ -5,0 +5,0 @@ "main": "summernote-list-of-links.js",

@@ -53,15 +53,20 @@ /**

this.loadList = function() {
if (self.data === undefined && listUrl !== undefined) {
$.get(listUrl, function(data) {
self.data = data;
$.each(data, function(key, value) {
var url = value[0];
var label = value[1];
$('.note-link-list').append($('<option>', {
value: url,
text : label
}));
});
})
}
return $.Deferred(function(deferred) {
if (self.data === undefined && listUrl !== undefined) {
$.get(listUrl, function(data) {
self.data = data;
$.each(data, function(key, value) {
var url = value[0];
var label = value[1];
$('.note-link-list').append($('<option>', {
value: url,
text : label
}));
deferred.resolve();
});
})
} else {
deferred.resolve();
}
});
}

@@ -91,10 +96,9 @@

this.loadList();
this.showLinkDialog(linkInfo).then(function (linkInfo) {
context.invoke('editor.restoreRange');
context.invoke('editor.createLink', linkInfo);
}).fail(function () {
context.invoke('editor.restoreRange');
this.loadList().then(function() {
self.showLinkDialog(linkInfo).then(function (linkInfo) {
context.invoke('editor.restoreRange');
context.invoke('editor.createLink', linkInfo);
}).fail(function () {
context.invoke('editor.restoreRange');
});
});

@@ -101,0 +105,0 @@ };

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc