summernote-list-of-links
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "summernote-list-of-links", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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", |
@@ -38,5 +38,6 @@ /** | ||
var options = context.options; | ||
if (options.listOfLinks !== undefined) { | ||
var listUrl = options.listOfLinks.listUrl; | ||
} | ||
var listUrl = options.listOfLinks.listUrl; | ||
context.memo('button.list-of-links', function () { | ||
@@ -53,3 +54,3 @@ return ui.button({ | ||
this.loadList = function() { | ||
if (self.data === undefined) { | ||
if (self.data === undefined && self.listUrl !== undefined) { | ||
$.get(listUrl, function(data) { | ||
@@ -56,0 +57,0 @@ self.data = data; |
8413
121