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
Scenario:
Have two editors, the first using the option enter: NaN and the second using enter: p. In the second editor we add a new table to the top of the editable field. Now we use the line breaker plugin to insert a new inline above the table.
Expected Behavior:
An empty paragraph is added.
Actual Behavior:
A line break is added.
Analysis:
The default tag to use for the line break is retrieved using editor.html.defaultTag(), however the editor used here is the first editor (using NaN). This is incorrect since we are creating a new line in the editable field of the second editor, which we have access to via the variable instance.
Proposed solution:
Use instance.html.defaultTag() instead of editor.html.defaultTag().
Editor version:
4.4.0
OS:
Windows 11
Browser:
Chrome
The text was updated successfully, but these errors were encountered:
Scenario:
Have two editors, the first using the option
enter: NaN
and the second usingenter: p
. In the second editor we add a new table to the top of the editable field. Now we use the line breaker plugin to insert a new inline above the table.Expected Behavior:
An empty paragraph is added.
Actual Behavior:
A line break is added.
Analysis:
The default tag to use for the line break is retrieved using
editor.html.defaultTag()
, however the editor used here is the first editor (using NaN). This is incorrect since we are creating a new line in the editable field of the second editor, which we have access to via the variableinstance
.Proposed solution:
Use
instance.html.defaultTag()
instead ofeditor.html.defaultTag()
.Editor version:
4.4.0
OS:
Windows 11
Browser:
Chrome
The text was updated successfully, but these errors were encountered: