From 0be81a7bf943651478778b7fce98bdbed936acbf Mon Sep 17 00:00:00 2001 From: Ellet Date: Thu, 7 Dec 2023 23:58:05 +0300 Subject: [PATCH] Add new todo --- doc/todo.md | 1 + .../widgets/raw_editor/raw_editor_state.dart | 20 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/doc/todo.md b/doc/todo.md index 813a9066..01401c11 100644 --- a/doc/todo.md +++ b/doc/todo.md @@ -33,6 +33,7 @@ This is a todo list page that added recently and will be updated soon. - Change the color of the numbers and dots in ol/ul to match the ones in the item list - 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 ### Bugs diff --git a/lib/src/widgets/raw_editor/raw_editor_state.dart b/lib/src/widgets/raw_editor/raw_editor_state.dart index 3bca1709..aaf32405 100644 --- a/lib/src/widgets/raw_editor/raw_editor_state.dart +++ b/lib/src/widgets/raw_editor/raw_editor_state.dart @@ -117,26 +117,6 @@ class QuillRawEditorState extends EditorState .call(content); } - // List get contextMenuButtonItems { - // return EditableText.getEditableButtonItems( - // clipboardStatus: _clipboardStatus.value, - // onLiveTextInput: null, - // onCopy: copyEnabled - // ? () => copySelection(SelectionChangedCause.toolbar) - // : null, - // onCut: - // cutEnabled ? () => cutSelection(SelectionChangedCause.toolbar) : null, - // onPaste: - // pasteEnabled ? () => pasteText(SelectionChangedCause.toolbar) : null, - // onSelectAll: selectAllEnabled - // ? () => selectAll(SelectionChangedCause.toolbar) - // : null, - // onLookUp: null, - // onSearchWeb: null, - // onShare: null, - // ); - // } - /// Copy current selection to [Clipboard]. @override void copySelection(SelectionChangedCause cause) {