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
When composer is empty and you use insertImage or insertLink commands, nothing is inserted in the html.
The issue is due to an invalid asynchronous test in this piece of code:
Note that that.isEmpty is checked outside the asynchronous block, so, this initially have a value of true, however, when the async code is executed, we have a valid html <p><img ...></p> but we are treating this as if it was empty because of the previous condition.
In order to solve this, this is as easy as moving the condition inside the async block:
Hi,
When composer is empty and you use insertImage or insertLink commands, nothing is inserted in the html.
The issue is due to an invalid asynchronous test in this piece of code:
Note that
that.isEmpty
is checked outside the asynchronous block, so, this initially have a value of true, however, when the async code is executed, we have a valid html<p><img ...></p>
but we are treating this as if it was empty because of the previous condition.In order to solve this, this is as easy as moving the condition inside the async block:
The text was updated successfully, but these errors were encountered: