mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 08:42:25 +02:00
Quote.js improved
This commit is contained in:
parent
c4475a2522
commit
af74d72f38
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue