mirror of
https://github.com/codex-team/editor.js
synced 2024-06-16 04:35:50 +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 */
|
/* make Author contentEditable */
|
||||||
author.contentEditable = 'true';
|
author.contentEditable = 'true';
|
||||||
|
|
||||||
author.textContent = data.cite || '';
|
author.innerHTML = data.cite || '';
|
||||||
|
|
||||||
/* Appending created components */
|
/* Appending created components */
|
||||||
wrapper.dataset.quoteStyle = 'withCaption';
|
wrapper.dataset.quoteStyle = 'withCaption';
|
||||||
|
@ -200,11 +200,11 @@ var quote = (function(quote_plugin) {
|
||||||
|
|
||||||
/* make author block contentEditable */
|
/* make author block contentEditable */
|
||||||
author.contentEditable = 'true';
|
author.contentEditable = 'true';
|
||||||
author.textContent = data.cite || '';
|
author.innerHTML = data.cite || '';
|
||||||
|
|
||||||
/* Author's position and job */
|
/* Author's position and job */
|
||||||
job.contentEditable = 'true';
|
job.contentEditable = 'true';
|
||||||
job.textContent = data.caption || '';
|
job.innerHTML = data.caption || '';
|
||||||
|
|
||||||
var authorsWrapper = ui_.makeBlock('DIV', [elementClasses_.withPhoto.authorHolder]);
|
var authorsWrapper = ui_.makeBlock('DIV', [elementClasses_.withPhoto.authorHolder]);
|
||||||
authorsWrapper.appendChild(author);
|
authorsWrapper.appendChild(author);
|
||||||
|
|
Loading…
Reference in a new issue