I have style as custom attribute for the strong mark to retain styles in strong tag. While rending it works as expected. But when toggling mark using shortcut or using the menu icon, already applied mark is getting removed as in the video.
I confirmed that it is due to not passing the custom style attribute to the internal function toggleMark by playing around with a custom strike mark as below.
toggleMark(schema.marks.strike,{ style: {// some styles}})
Query:
Can you alter the toggleMark function to work properly without passing the attribute property?
Please watch the video carefully @0:25 time stamp, where I clicked the bold icon. After that, as soon as I typed the next character(h), the bold applied for "here" word got removed. But it should retain for the word "here" and should only get removed for next chars(“he”) right?