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

feat: table plugin #62

Merged
merged 42 commits into from Aug 29, 2023
Merged

feat: table plugin #62

merged 42 commits into from Aug 29, 2023

Conversation

zoli
Copy link
Contributor

@zoli zoli commented Apr 11, 2023

Coming from AppFlowy-IO/AppFlowy#2120.

  • New Node types 'table' and 'table/cell'. The 'table/cell' node for now contains single TextNode. All the data is kept in node attributes. Data related to 'table' like number of rows and columns are in 'table' node attributes and data related to each table cell is in 'table/cell' node attribute (cell height, position of cell its row and column). The TextNode in table cell supports selection menu and toolbar but not all of them work inside the table cell (some of them are not applicable in table cell).
  • Added isApplicable to ContextMenuItem so we can have context-base context menu
  • Modified backspaceEventHandler so it won't move from one table cell to another cell and also handling backspace when the selection includes part of table cells and none table related nodes.
  • Modified _getNodeInOffset so selection also works when we have multiple nodes in a single line (same y position). I will add more info on this in another comment.
  • Made ColorPicker more customizable and reusable for other than toolbar service.

@CLAassistant
Copy link

CLAassistant commented Apr 11, 2023

CLA assistant check
All committers have signed the CLA.

@zoli zoli changed the title feat: table plugin requisites feat: table plugin Apr 12, 2023
@zoli
Copy link
Contributor Author

zoli commented Apr 15, 2023

Implemented markdown decode/encode feature for table.

zoli added 6 commits June 26, 2023 10:58
* main:
  feat: support uploading images from local files  (AppFlowy-IO#232)
  fix: desktop tooltips incorrect (AppFlowy-IO#259)
  fix: add underline syntax parser (AppFlowy-IO#256)
  chore: add reload function into editor state
  fix: ignore the same value update in input service (AppFlowy-IO#257)
  Revert "feat: support mobile IME (AppFlowy-IO#255)"
  feat: support item count filter in selection menu results  (AppFlowy-IO#254)
  feat: support mobile IME (AppFlowy-IO#255)
  feat: replace DeltaTextInputClient with TextInputClient (AppFlowy-IO#253)
@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jul 3, 2023

@zoli Is it ready to review and merge?

@zoli
Copy link
Contributor Author

zoli commented Jul 3, 2023

@zoli Is it ready to review and merge?

Yes. The design and maybe some UX corners could improve, But I think enhancing them incrementally is better.

@annieappflowy
Copy link
Collaborator

I can't wait to try this. When will this feature be released?

@zoli
Copy link
Contributor Author

zoli commented Aug 12, 2023

I can't wait to try this. When will this feature be released?

In my last discussion with @LucasXu0, he said we should move the plugin to Appflowy repo.

@LucasXu0 LucasXu0 merged commit dd52ce6 into AppFlowy-IO:main Aug 29, 2023
8 of 11 checks passed
@zoli zoli deleted the feat/table-plugin branch August 29, 2023 08:03
q200892907 added a commit to q200892907/appflowy-editor that referenced this pull request Sep 5, 2023
* main:
  feat: simplify auto scroll behavior in ScrollServiceWidget (AppFlowy-IO#437)
  chore: bump version 1.3.0 (AppFlowy-IO#435)
  fix: better column resize performance (AppFlowy-IO#434)
  fix: table padding and selection (AppFlowy-IO#432)
  fix: table block bugs (AppFlowy-IO#431)
  fix: refactor text alignment handling in block components
  Revert "fix: remove flutter overlay (AppFlowy-IO#358)" (AppFlowy-IO#427)
  feat: support alignment for block component (AppFlowy-IO#425)
  fix: remove flutter overlay (AppFlowy-IO#358)
  feat: toggle highlight using ctrl/cmd + shift + h (AppFlowy-IO#333)
  feat: table plugin (AppFlowy-IO#62)
  feat: editor state update node (AppFlowy-IO#405)
  fix: exception on prev node text direction null (AppFlowy-IO#404)
  fix: html encoder not adding multiple text decorations (AppFlowy-IO#424)
  feat: default text direction property (AppFlowy-IO#402)
  fix: fixed the cursor not moving to next line after inserting divider (AppFlowy-IO#371)
  chore: update theme colors for editor
  feat: refactor floating toolbar positioning logic
  fix: update resizable image width calculation with minimum width constraint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants