fix(core): force multiline flag for editor component patterns (#3082)
This commit is contained in:
committed by
Erez Rokah
parent
09564bf8b6
commit
476f45096e
@ -25,7 +25,8 @@ export default function createEditorComponent(config) {
|
||||
type,
|
||||
icon,
|
||||
widget,
|
||||
pattern,
|
||||
// enforce multiline flag, exclude others
|
||||
pattern: new RegExp(pattern, 'm'),
|
||||
fromBlock: bind(fromBlock) || (() => ({})),
|
||||
toBlock: bind(toBlock) || (() => 'Plugin'),
|
||||
toPreview: bind(toPreview) || (!widget && (bind(toBlock) || (() => 'Plugin'))),
|
||||
|
Reference in New Issue
Block a user