I wonder whether it is possible to completely prevent that EditorJS saves HTML-Tags in their blocks (i.e. <a>link</a>) and format it in another way as anchor (i.e. another object).
This is an example of EditorJS' way:
{
type : 'paragraph',
data : {
text : `There are dozens of <a href="https://github.com/editor-js">ready-to-use Blocks</a> and the simple API for creation any Block you need. For example, you can implement Blocks for Tweets, Instagram posts, surveys and polls, CTA-buttons and even games.`
}
}
Suggestion/Approach:
{
type : 'paragraph',
data : {
text : `There are dozens of`
}
},
{
type : 'anchor',
data : {
text : `ready-to-use Blocks`,
link: "https://github.com/editor-js"
}
},
{
type : 'paragraph',
data : {
text : `and the simple API for creation any Block you need. For example, you can implement Blocks for Tweets, Instagram posts, surveys and polls, CTA-buttons and even games.`
}
},
I don't like the idea to store HTML inside the database and I don't like to mix and match HTML with JSON.
Thanks for the great lib anyway :-)
I wonder whether it is possible to completely prevent that EditorJS saves HTML-Tags in their blocks (i.e.
<a>link</a>) and format it in another way as anchor (i.e. another object).This is an example of EditorJS' way:
Suggestion/Approach:
I don't like the idea to store HTML inside the database and I don't like to mix and match HTML with JSON.
Thanks for the great lib anyway :-)