Create more MW sequences

* '{|' for tables
* '<!--' for comments
* '<gallery' for galleries

Change-Id: Ib78c411bf8676bc1974bb80515fd56c642cd67b7
This commit is contained in:
Ed Sanders 2015-10-22 15:18:45 +01:00
parent 57d33a291e
commit 07d56b6b5d
2 changed files with 10 additions and 0 deletions

View file

@ -33,3 +33,7 @@ ve.ui.commandRegistry.register(
{ args: [ 'gallery' ], supportedSelections: [ 'linear' ] }
)
);
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextGallery', 'gallery', '<gallery', 8 )
);

View file

@ -30,3 +30,9 @@ ve.ui.sequenceRegistry.register(
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextDescription', 'blockquote', [ { type: 'paragraph' }, ':' ], 1 )
);
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextTable', 'insertTable', '{|', 2 )
);
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextComment', 'comment', '<!--', 4 )
);