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
Copy file name to clipboardExpand all lines: README.md
+55-42Lines changed: 55 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -23,48 +23,61 @@ Let’s learn how you can use Utils SDK to render RTE embedded items and Superch
23
23
To render embedded items on the front-end, use the renderOptions function, and define the UI elements you want to show in the front-end of your website, as shown in the example below:
24
24
```js
25
25
constrenderOption= {
26
-
// to render Supercharged RTE NodeType content like paragraph, link, table, order list, un-order list and more.
27
-
p: (node, next) => {
28
-
return`<p class='class-id'>${next(node.children)}</p>`// you will need to call next function with node children contents
29
-
},
30
-
h1: (node, next) => {
31
-
return`<h1 class='class-id'>${next(node.children)}</h1>`// you will need to call next function with node children contents
32
-
},
33
-
// to render Supercharged RTE MarkType content like bold, italic, underline, strikethrough, inlineCode, subscript, and superscript
0 commit comments