mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 16:52:38 +02:00
merged
This commit is contained in:
parent
75ce6ae4f2
commit
48438d456e
10
example.html
10
example.html
|
@ -151,15 +151,9 @@
|
|||
type: 'instagram',
|
||||
iconClassname: 'ce-icon-instagram',
|
||||
prepare: instagram.prepare,
|
||||
make: instagram.make,
|
||||
appendCallback: null,
|
||||
settings: null,
|
||||
render: instagram.reneder,
|
||||
validate: instagram.validate,
|
||||
save: instagram.save,
|
||||
displayInToolbox: false,
|
||||
enableLineBreaks: false,
|
||||
allowedToPaste: false
|
||||
save: instagram.save
|
||||
},
|
||||
twitter: {
|
||||
type: 'twitter',
|
||||
|
@ -177,7 +171,7 @@
|
|||
make: embed.make,
|
||||
render: embed.render,
|
||||
save: embed.save,
|
||||
validate: embed.validate,
|
||||
validate: embed.validate
|
||||
}
|
||||
},
|
||||
data : {
|
||||
|
|
|
@ -418,6 +418,13 @@ var quote = (function(quote) {
|
|||
|
||||
var prepareDataForSave_ = function(data) {
|
||||
|
||||
if (data.size == 'withPhoto') {
|
||||
data.size = 'small';
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
|
||||
return data;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -448,11 +455,7 @@ var quote = (function(quote) {
|
|||
*/
|
||||
var parsedblock = methods_.parseBlockQuote(blockContent);
|
||||
|
||||
if (parsedblock.style == 'withPhoto') {
|
||||
parsedblock.style = 'small';
|
||||
}
|
||||
|
||||
data = {
|
||||
var data = {
|
||||
"text" : parsedblock.text,
|
||||
"format" : "html",
|
||||
"cite" : parsedblock.author,
|
||||
|
@ -461,7 +464,7 @@ var quote = (function(quote) {
|
|||
"image" : parsedblock.photo
|
||||
};
|
||||
|
||||
return data;
|
||||
return prepareDataForSave_(data);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue