quote now saves HTML in author and job

This commit is contained in:
Peter Savchenko 2017-02-21 15:03:49 +03:00
parent 291c687f25
commit c4475a2522

View file

@ -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,