Skip to content

Commit

Permalink
Add bug todo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Dec 8, 2023
1 parent 0fd1125 commit 34b8755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ This is a todo list page that added recently and will be updated soon.
- Fix the bugs of the font family and font size
- Try to update Quill Html Converter
- When pasting a HTML text from cliboard by not using the context menu builder, the new logic won't work
- When selecting all text and paste HTML text, it will not replace the current text, instead it will add a text
- Add strike-through in checkbox text when the checkpoint is checked
- No more using of dynamic
- There is a bug here, the first character is not being formatted when choosing font family or font size and type in the editor

### Bugs

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ mixin RawEditorStateTextInputClientMixin on EditorState
diff.inserted,
value.selection,
);

// TODO: There is a bug here, the first character is not being formatted

if (widget.configurations.controller.selectedFontFamily != null) {
widget.configurations.controller.formatText(
diff.start,
Expand All @@ -218,6 +221,8 @@ mixin RawEditorStateTextInputClientMixin on EditorState
);
}

// TODO: A bug here too

if (widget.configurations.controller.selectedFontSize != null) {
widget.configurations.controller.formatText(
diff.start,
Expand Down

0 comments on commit 34b8755

Please sign in to comment.