You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I have a special LinkBlot AtomicBlot that is similar to the default LinkBlot example with the following differences. When the curser/selection is somewhere inside that AtomicBlot's text and I delete at least one character then the whole AtomicBlot is removed. Similarly, I must not be able to add characters to AtomicBlot.
My idea was to make AtomicBlot extend from the inline Embed blot. In that case the whole AtomicBlot is deleted when the cursor is right to it's last character and backspace is pressed. But when the cursor is at some other position it does only remove one character and not the whole AtomicBlot. I assume I need to override some of the Blot methods to achieve the correct behavior but I am a bit at a loss.
I was not sure whether to put this question here or on the Quill project. In any case, any advice would be appreciated.
The text was updated successfully, but these errors were encountered:
Let's say I have a special LinkBlot AtomicBlot that is similar to the default LinkBlot example with the following differences. When the curser/selection is somewhere inside that AtomicBlot's text and I delete at least one character then the whole AtomicBlot is removed. Similarly, I must not be able to add characters to AtomicBlot.
My idea was to make AtomicBlot extend from the inline Embed blot. In that case the whole AtomicBlot is deleted when the cursor is right to it's last character and backspace is pressed. But when the cursor is at some other position it does only remove one character and not the whole AtomicBlot. I assume I need to override some of the Blot methods to achieve the correct behavior but I am a bit at a loss.
I was not sure whether to put this question here or on the Quill project. In any case, any advice would be appreciated.
The text was updated successfully, but these errors were encountered: