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
If you try to select some text and include spaces in the selection, then you programatically call .insert() using BBCode (using just the first 2 parameters), the surrounding space around the selection is trimmed out.
E.g:
Assume you have a tag called s which is correctly set to form <s> tags.
If you type:
If you try to select some text and include spaces in the selection, then you programatically call
.insert()
using BBCode (using just the first 2 parameters), the surrounding space around the selection is trimmed out.E.g:
Assume you have a tag called
s
which is correctly set to form<s>
tags.If you type:
if you select (including the space)
Then you call the editor's
.insert()
like this:you get:
Instead of:
This seems to be caused by https://github.com/samclarke/SCEditor/blob/master/src/plugins/bbcode.js#L1871.
I'm not doing anything because I don't really know the reason why that method call is there.
The text was updated successfully, but these errors were encountered: