Allow focusing a newly-created inline content after insertion #2433
Replies: 2 comments
-
|
@ClementEXWiki, why should subscript & superscript act any differently than something like underline or bold? Should they be inline content, or should they be styles? |
Beta Was this translation helpful? Give feedback.
-
|
I'm currently using inline contents to circumvent the fact subscript and superscript are not available natively in BlockNote right now, and given our code structure it's easier to do that than adding custom styles. Long-term, subscript and subscript would be better as native styles, yes. Also this was just a single example, we're going to get lots of actual custom inline contents, that may be empty when inserted, and it would be nice to have a way to put the cursor inside the inline content after insertion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
I have some custom inline contents that are basic wrappers around their content (e.g. subscript / superscript). This means that, when inserted, they are basically invisible until they are actually filled with a content.
Describe the solution you'd like
Allow focusing the inline content's inner WYSIWYG area after insertion.
Describe alternatives you've considered
Currently I'm inserting the element with a default text, which is not ideal for two reasons:
Additional context
N/A
Beta Was this translation helpful? Give feedback.
All reactions