update content

This commit is contained in:
Hans Pagel
2020-11-10 15:28:29 +01:00
parent b8d66fed96
commit f5dabc76f2
2 changed files with 27 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ const CustomParagraph = Paragraph.extend({
})
// Result:
// <p color="pink" style="color: pink">Example Text</p>
// <p style="color: pink">Example Text</p>
```
You can also control how the attribute is parsed from the HTML. Lets say you want to store the color in an attribute called `data-color`, heres how you would do that: