mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Create more MW sequences
* '{|' for tables * '<!--' for comments * '<gallery' for galleries Change-Id: Ib78c411bf8676bc1974bb80515fd56c642cd67b7
This commit is contained in:
parent
57d33a291e
commit
07d56b6b5d
|
@ -33,3 +33,7 @@ ve.ui.commandRegistry.register(
|
|||
{ args: [ 'gallery' ], supportedSelections: [ 'linear' ] }
|
||||
)
|
||||
);
|
||||
|
||||
ve.ui.sequenceRegistry.register(
|
||||
new ve.ui.Sequence( 'wikitextGallery', 'gallery', '<gallery', 8 )
|
||||
);
|
||||
|
|
|
@ -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 )
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue