Quote.js improved

This commit is contained in:
Peter Savchenko 2017-02-21 16:32:24 +03:00
parent c4475a2522
commit af74d72f38

View file

@ -157,7 +157,7 @@ var quote = (function(quote_plugin) {
/* make Author contentEditable */
author.contentEditable = 'true';
author.textContent = data.cite || '';
author.innerHTML = data.cite || '';
/* Appending created components */
wrapper.dataset.quoteStyle = 'withCaption';
@ -200,11 +200,11 @@ var quote = (function(quote_plugin) {
/* make author block contentEditable */
author.contentEditable = 'true';
author.textContent = data.cite || '';
author.innerHTML = data.cite || '';
/* Author's position and job */
job.contentEditable = 'true';
job.textContent = data.caption || '';
job.innerHTML = data.caption || '';
var authorsWrapper = ui_.makeBlock('DIV', [elementClasses_.withPhoto.authorHolder]);
authorsWrapper.appendChild(author);