mirror of
https://github.com/codex-team/editor.js
synced 2024-06-16 12:45:29 +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 ;
|
||||
|
||||
/** 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,
|
||||
|
|
Loading…
Reference in a new issue