Hello there! I have content string and formatting for it, what looks like this:
offsets: [
{
style: 'bold',
start: 0,
end: 16,
},
{
style: 'italic',
start: 4,
end: 20,
},
]
I want to apply this styles to the original string. But ProseMirror have different indexing system, so after i apply one style, other have shifting. How can i apply this styles exactly the same index, as orinigal string?
Thaks for your attention!