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

ChainCommands action not applied properly #1

Open
shobokshy opened this issue Jan 6, 2019 · 0 comments
Open

ChainCommands action not applied properly #1

shobokshy opened this issue Jan 6, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@shobokshy
Copy link
Owner

Describe the bug
The chain commands action is only applying the first command and ignoring the rest

To Reproduce

Running the following:

const command = editor.actions.chainCommands.getCommand(editor.actions.italic.getCommand(), editor.actions.bold.getCommand());

command(editor.editorState, editor.dispatchTransaction);

Only italic gets applied.

Expected behavior
Both italic and bold should be applied

Desktop (please complete the following information):

  • OS: macos
  • Browser: chrome
  • Version: 71
@shobokshy shobokshy added the bug Something isn't working label Jan 6, 2019
@shobokshy shobokshy self-assigned this Jan 6, 2019
@shobokshy shobokshy changed the title ChainCommands action not working ChainCommands action not applied properly Jan 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant