mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 18:03:25 +02:00
Json Formatter: new tools added (#594)
This commit is contained in:
parent
aab317895b
commit
208f8e15ab
|
@ -31,7 +31,7 @@ const cPreview = (function (module) {
|
|||
/** Stylize JSON keys */
|
||||
string = string.replace( /"(\w+)"\s?:/g, '"<span class=sc_key>$1</span>" :');
|
||||
/** Stylize tool names */
|
||||
string = string.replace( /"(paragraph|quote|list|header|link|code|image|delimiter|raw)"/g, '"<span class=sc_toolname>$1</span>"');
|
||||
string = string.replace( /"(paragraph|quote|list|header|link|code|image|delimiter|raw|checklist|table|embed)"/g, '"<span class=sc_toolname>$1</span>"');
|
||||
/** Stylize HTML tags */
|
||||
string = string.replace( /(<[\/a-z]+(>)?)/gi, '<span class=sc_tag>$1</span>' );
|
||||
/** Stylize strings */
|
||||
|
|
Loading…
Reference in a new issue