-
- Downloads
Bug 1815969 - part 3: Redesign `EditorBase::PasteAsAction` and...
Bug 1815969 - part 3: Redesign `EditorBase::PasteAsAction` and `EditorBase::PasteAsQuotationAsAction` r=m_kato This patch makes `EditorBase` implement them as non-virtual methods and implement their first part. Then, they call new virtual methods to handle paste and paste-as-quotation. With this change, `TextEditor` starts to dispatch `paste` event when paste-as-quotation. The new test checks it. Differential Revision: https://phabricator.services.mozilla.com/D176739
Showing
- editor/libeditor/EditorBase.cpp 91 additions, 1 deletioneditor/libeditor/EditorBase.cpp
- editor/libeditor/EditorBase.h 19 additions, 5 deletionseditor/libeditor/EditorBase.h
- editor/libeditor/HTMLEditor.h 5 additions, 17 deletionseditor/libeditor/HTMLEditor.h
- editor/libeditor/HTMLEditorDataTransfer.cpp 21 additions, 86 deletionseditor/libeditor/HTMLEditorDataTransfer.cpp
- editor/libeditor/TextEditor.cpp 14 additions, 20 deletionseditor/libeditor/TextEditor.cpp
- editor/libeditor/TextEditor.h 5 additions, 18 deletionseditor/libeditor/TextEditor.h
- editor/libeditor/TextEditorDataTransfer.cpp 5 additions, 36 deletionseditor/libeditor/TextEditorDataTransfer.cpp
- editor/libeditor/tests/mochitest.ini 1 addition, 0 deletionseditor/libeditor/tests/mochitest.ini
- editor/libeditor/tests/test_paste_as_quote_in_text_control.html 48 additions, 0 deletions.../libeditor/tests/test_paste_as_quote_in_text_control.html
Loading
Please register or sign in to comment