forked by Quote Tool
{
"type" : "quote",
"data" : {
"text" : "The unexamined life is not worth living.",
"caption" : "Socrates",
// 標準ライブラリでは作動しないので削除
"alignment" : "left"
}
}
この変更に伴ってtoolbox内で左寄せ右寄せは存在しなくなる。
background-colorなどが本体のカラーシステムと離れているため変更
var editor = EditorJS({
...
tools: {
...
quote: {
class: Quote,
inlineToolbar: true,
shortcut: 'CMD+SHIFT+O',
config: {
quotePlaceholder: 'Enter a quote',
captionPlaceholder: 'Quote\'s author',
},
},
},
...
});
Enter a quoteとQuote's authorをi18nで変更させることができないので注意