Skip to content

block node and createEditor#173

Open
Yxwww wants to merge 42 commits intomainfrom
feat/create-editor
Open

block node and createEditor#173
Yxwww wants to merge 42 commits intomainfrom
feat/create-editor

Conversation

@Yxwww
Copy link
Contributor

@Yxwww Yxwww commented Sep 21, 2022

  • backwards compatible with existing schema
  • new article schema preset that uses a block node as the top level node


const onDelete = () => dispatch(deleteNode(stateId, viewId, { node, pos }));
const onDelete = () => {
const foundParentFigureResult = findParentNodeOfTypeClosestToPos(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes an issue where delete code actions does not delete the figure wrapped around it

// eslint-disable-next-line @typescript-eslint/default-param-last
const editorReducer = (state = initialState, action: EditorActionTypes): EditorsState => {
switch (action.type) {
case REGISTER_EDITOR_STATE: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it so that we can directly register editor state using the state object. The future goal is not having editor state in redux at all

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.

2 participants