How to format selection instead of whole line? #5158
Unanswered
robFraser1111
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've created a custom plugin and can format the whole paragraph using
$setBlocksType.But I want to format just the selected text. I've currently got as far as the below.
I'm also getting this type error:
node.replace is not a functionThanks.
Beta Was this translation helpful? Give feedback.
All reactions