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
Delete the existing text and change the font family from 'Aref Ruqaa' to 'Roboto'
Adding a new line of text will reset the selected font from the previously selected 'Roboto' to 'Aref Ruqaa'
Expected behavior:
I am expecting that the selected font will be persisted and not reset to the default one every time the user adds a new line.
This was the behavior Quill v1.3.7 used to have and no breaking change warning has been added in Quill v2 release notes.
Actual behavior:
The selected font is reset to the default one.
Platforms:
Include browser, operating system and respective versions
Version:
v2.0.2
The text was updated successfully, but these errors were encountered:
dumitrascuSorin
changed the title
Why is the font selection not persisted on the following lines?
Why is the text formatting not persisted on the following lines?
Aug 22, 2024
@gjulivan
It seems this was done on purpose in Quill v2 and they didn't mark it as a breaking change. The behaviour was changed in pull request #3428
To get it working as it used to in Quill v 1.3.7, I did the following (note that my project is using ngx-quill, which is an Angular wrapper for Quill)
I used the onEditorCreated event handler to get all the keyboard bindings associated with the Enter key
I looped over the Enter bindings and removed the default empty binding and the handleEnter binding.
I added a new Enter key binding which contains the old handleEnter logic which was changed in the abovementioned pull request.
Hope this helps!
Steps for Reproduction
Expected behavior:
I am expecting that the selected font will be persisted and not reset to the default one every time the user adds a new line.
This was the behavior Quill v1.3.7 used to have and no breaking change warning has been added in Quill v2 release notes.
Actual behavior:
The selected font is reset to the default one.
Platforms:
Include browser, operating system and respective versions
Version:
v2.0.2
The text was updated successfully, but these errors were encountered: