Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OT for table #3590

Merged
merged 31 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c84c356
Support retain embed
luin May 28, 2021
6d7a147
Add table handler
luin May 30, 2021
cab87ef
Add random testing for table operations
luin May 30, 2021
d1d40e5
Upgrade delta
luin May 31, 2021
cc0ad88
Register table handler in a module
luin Jun 14, 2021
6e40f11
Fix composePosition
luin Jun 18, 2021
4ff9d39
Fix the test case for invert tables
luin Jun 20, 2021
af4f1eb
Update delta for embed transform
luin Jul 22, 2021
61a2fd5
Rename table to table-embed to avoid name conflicts
luin Aug 20, 2021
4da5c38
Upgrade delta for embed retaining
luin Aug 20, 2021
22d7cf6
Add table handler
luin May 30, 2021
a9c5343
Register table handler in a module
luin Jun 14, 2021
855433f
Add table handler
luin May 30, 2021
ee1db9b
Register table handler in a module
luin Jun 14, 2021
37e02ae
Ignore self-manage blots
luin Jul 22, 2021
8083458
Add scroll embed change event
luin Jul 22, 2021
8664379
Upgrade delta to fix invert
luin Jul 22, 2021
7104087
Allow different Delta constructors
luin Jul 26, 2021
c7e3c37
Rename event names
luin Aug 18, 2021
b65ccee
Support updating embed content
luin Aug 18, 2021
b7b3131
Expose composePosition
luin Oct 5, 2021
0c4122c
Fix getRange not work with nested Quill
luin Oct 21, 2021
d78cc96
Ignore keyboard events triggered from nested quill instances
luin Oct 21, 2021
89e4d68
Quill.find should accept bubble parameter
luin Nov 8, 2021
5268696
Upgrade Parchment to make sure Scroll#find() not return nested scroll…
luin Nov 8, 2021
3a88c93
Merge branch 'develop' into zh-table-ot
luin Nov 29, 2021
a1e81da
Merge branch 'develop' into zh-table-ot
luin Dec 17, 2021
e17f0a1
Merge branch 'develop' into zh-table-ot
luin Feb 14, 2022
4313e90
Merge branch 'develop' into zh-table-ot
luin Feb 18, 2022
fbb887b
Merge branch 'develop' into zh-table-ot
luin Mar 3, 2022
d00df81
Upgrade Parchment to 2.0
luin May 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename event names
  • Loading branch information
luin committed Aug 26, 2021
commit c7e3c37f3d34a256b9448959bbaf0535b882e513
2 changes: 1 addition & 1 deletion core/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Emitter.events = {
SCROLL_BLOT_UNMOUNT: 'scroll-blot-unmount',
SCROLL_OPTIMIZE: 'scroll-optimize',
SCROLL_UPDATE: 'scroll-update',
SCROLL_EMBED_CHANGE: 'scroll-embed-change',
SCROLL_EMBED_UPDATE: 'scroll-embed-update',
SELECTION_CHANGE: 'selection-change',
TEXT_CHANGE: 'text-change',
};
Expand Down
2 changes: 1 addition & 1 deletion core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Quill {
source,
);
});
this.emitter.on(Emitter.events.SCROLL_EMBED_CHANGE, (blot, delta) => {
this.emitter.on(Emitter.events.SCROLL_EMBED_UPDATE, (blot, delta) => {
const oldRange = this.selection.lastRange;
const [newRange] = this.selection.getRange();
const selectionInfo =
Expand Down