Merge "Disallow horizontal rule (----) in reply tool"

This commit is contained in:
jenkins-bot 2021-06-19 14:01:16 +00:00 committed by Gerrit Code Review
commit cccce3886e

View file

@ -85,6 +85,12 @@ sequenceRegistry.register(
); );
ve.ui.commandHelpRegistry.unregister( 'heading2' ); ve.ui.commandHelpRegistry.unregister( 'heading2' );
// horizontal rule
sequenceRegistry.register(
new ve.ui.Sequence( 'horizontalRule', 'mwWikitextWarning', [ { type: 'paragraph' }, '-', '-', '-', '-' ] )
);
ve.ui.commandHelpRegistry.unregister( 'horizontalRule' );
module.exports = { module.exports = {
commandRegistry: commandRegistry, commandRegistry: commandRegistry,
sequenceRegistry: sequenceRegistry, sequenceRegistry: sequenceRegistry,