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
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 :-)
The text was updated successfully, but these errors were encountered:
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 :-)
The text was updated successfully, but these errors were encountered: