Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Conversation

@michaelgmcd
Copy link

First off, love the plugin and the amount of work put into this fork.

When using this in my own project, I found it odd that shortcuts still apply if the block type is already a styled one. For example, typing "- " inserts a list item and then if I type "# ", the list item is removed and replaced with a header.

Note that I'm pretty new to working with Draft, so I'd appreciate an extra close look at this.

@mxstbr
Copy link

mxstbr commented Apr 4, 2018

/cc @juliankrispel

if (matchArr) {
return changeCurrentBlockType(
editorState,
CHECKABLE_LIST_ITEM,

Choose a reason for hiding this comment

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

good catch! I suppose the existing tests broke without this?

@juliankrispel
Copy link

looks solid to me!

Copy link

@juliankrispel juliankrispel left a comment

Choose a reason for hiding this comment

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

👍

@juliankrispel juliankrispel merged commit 117ffd5 into withspectrum:master Apr 4, 2018
@juliankrispel
Copy link

well done @michaelgmcd 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants