Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't fire input rules inside code blocks
FIX: Input rules no longer fire in blocks that have their `code` spec set to true. Issue #722
- Loading branch information
b4bf676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marijnh it would be great if there was a separate spec property for this rather than piggybacking off of
spec.code
.We'd like to enable link-matching inputRules inside of codeblocks, but to do so affects other aspects of the codeblock's behavior (eg upon Enter it splits the block rather than inserting
/n
.)Maybe like
spec.allowInputRules
, and it would default to the inverse ofspec.code
.b4bf676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you not use
inCode
on your input rule for this?b4bf676
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, I apologize - I once knew about, but since forgot that option.