You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using editor.js with a plugin that allows aligning paragraphs.
This plugin editorjs-paragraph-with-alignment generate the output data with alignment in addition to thetext:
Output data
Field
Type
Description
text
string
paragraph's text
alignment
string
left/center/right/justify
{
"type" : "paragraph",
"data" : {
"text" : "Check out our projects on a <a href=\"https://github.com/codex-team\">GitHub page</a>.",
"alignment": "left"
}
}
Hi,
I'm using editor.js with a plugin that allows aligning paragraphs.
This plugin editorjs-paragraph-with-alignment generate the output data with
alignment
in addition to thetext
:Output data
Currently, the paragraph function adds only the text inside the tag
p
.I think it could be a good improvement to allow the parser check for
alignment
and set the paragraphtext-align
style with thealignment
value.The text was updated successfully, but these errors were encountered: