stable
Clone or download
Read-only
Part of story #38627: Choice of a new Rich Text Editor Add an inputRule to support markdown headings I wanted to make a single function for the three heading types, but I don't know how to handle this when adding the rule. How to test: -- Press '#' then space -> It should toogle to Large heading and the style selectbox should be updated. -- Press '##' then space -> It should toogle to Medium heading and the style selectbox should be updated. -- Press '###' then space -> It should toogle to Small heading and the style selectbox should be updated. Change-Id: Ia358b0a432dd340ca3155430f28b53b873b7d4de
Modified Files
Name | ||||
---|---|---|---|---|
M | lib/frontend/prose-mirror-editor/src/plugins/toolbar/input-rules.ts | +15 | −0 | Go to diff View file |