mirror of
https://github.com/codex-team/editor.js
synced 2024-06-25 00:40:50 +02:00
quote now saves HTML in author and job
This commit is contained in:
parent
291c687f25
commit
c4475a2522
|
@ -234,20 +234,34 @@ var quote = (function(quote_plugin) {
|
||||||
quote ;
|
quote ;
|
||||||
|
|
||||||
/** Simple quote text placed in Blockquote tag*/
|
/** Simple quote text placed in Blockquote tag*/
|
||||||
if ( currentNode.dataset.quoteStyle == 'simple' )
|
if ( currentNode.dataset.quoteStyle == 'simple' ){
|
||||||
|
|
||||||
quote = currentNode.innerHTML || '';
|
quote = currentNode.innerHTML || '';
|
||||||
else
|
|
||||||
|
} else {
|
||||||
|
|
||||||
quote = currentNode.querySelector('.' + elementClasses_.quoteText).innerHTML;
|
quote = currentNode.querySelector('.' + elementClasses_.quoteText).innerHTML;
|
||||||
|
|
||||||
if (job)
|
}
|
||||||
job = job.textContent || '';
|
|
||||||
|
|
||||||
if (author)
|
if (job){
|
||||||
author = author.textContent || '';
|
|
||||||
|
job = job.innerHTML || '';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (author){
|
||||||
|
|
||||||
|
author = author.innerHTML || '';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (photo){
|
||||||
|
|
||||||
if (photo)
|
|
||||||
photo = photo.dataset.bigUrl;
|
photo = photo.dataset.bigUrl;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
style : currentNode.dataset.quoteStyle,
|
style : currentNode.dataset.quoteStyle,
|
||||||
text : quote,
|
text : quote,
|
||||||
|
|
Loading…
Reference in a new issue