From c4475a252232a54aab6aaf2b0b7a68a9384cb075 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Tue, 21 Feb 2017 15:03:49 +0300 Subject: [PATCH] quote now saves HTML in author and job --- plugins/quote/quote.js | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/plugins/quote/quote.js b/plugins/quote/quote.js index 8ec53265..7b30140e 100644 --- a/plugins/quote/quote.js +++ b/plugins/quote/quote.js @@ -234,20 +234,34 @@ var quote = (function(quote_plugin) { quote ; /** Simple quote text placed in Blockquote tag*/ - if ( currentNode.dataset.quoteStyle == 'simple' ) + if ( currentNode.dataset.quoteStyle == 'simple' ){ + quote = currentNode.innerHTML || ''; - else + + } else { + quote = currentNode.querySelector('.' + elementClasses_.quoteText).innerHTML; - if (job) - job = job.textContent || ''; + } - if (author) - author = author.textContent || ''; + if (job){ + + job = job.innerHTML || ''; + + } + + if (author){ + + author = author.innerHTML || ''; + + } + + if (photo){ - if (photo) photo = photo.dataset.bigUrl; + } + var data = { style : currentNode.dataset.quoteStyle, text : quote,