diff --git a/example.html b/example.html index bfebc917..fd845009 100644 --- a/example.html +++ b/example.html @@ -151,15 +151,9 @@ type: 'instagram', iconClassname: 'ce-icon-instagram', prepare: instagram.prepare, - make: instagram.make, - appendCallback: null, - settings: null, render: instagram.reneder, validate: instagram.validate, - save: instagram.save, - displayInToolbox: false, - enableLineBreaks: false, - allowedToPaste: false + save: instagram.save }, twitter: { type: 'twitter', @@ -177,7 +171,7 @@ make: embed.make, render: embed.render, save: embed.save, - validate: embed.validate, + validate: embed.validate } }, data : { diff --git a/plugins/quote/quote.js b/plugins/quote/quote.js index 53549451..4686eb3c 100644 --- a/plugins/quote/quote.js +++ b/plugins/quote/quote.js @@ -418,6 +418,13 @@ var quote = (function(quote) { var prepareDataForSave_ = function(data) { + if (data.size == 'withPhoto') { + data.size = 'small'; + } + + console.log(data); + + return data; }; /** @@ -448,11 +455,7 @@ var quote = (function(quote) { */ var parsedblock = methods_.parseBlockQuote(blockContent); - if (parsedblock.style == 'withPhoto') { - parsedblock.style = 'small'; - } - - data = { + var data = { "text" : parsedblock.text, "format" : "html", "cite" : parsedblock.author, @@ -461,7 +464,7 @@ var quote = (function(quote) { "image" : parsedblock.photo }; - return data; + return prepareDataForSave_(data); }; /**