Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/168961

Change subject: Create tables with class=wikitable by default
......................................................................

Create tables with class=wikitable by default

Change-Id: I094b1823248e16dd3b9a0a10ba13104f14798621
---
M modules/ve-mw/ui/ve.ui.MWCommandRegistry.js
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/61/168961/1

diff --git a/modules/ve-mw/ui/ve.ui.MWCommandRegistry.js 
b/modules/ve-mw/ui/ve.ui.MWCommandRegistry.js
index 2fc4e2f..35175b8 100644
--- a/modules/ve-mw/ui/ve.ui.MWCommandRegistry.js
+++ b/modules/ve-mw/ui/ve.ui.MWCommandRegistry.js
@@ -67,3 +67,17 @@
 ve.ui.commandRegistry.register(
        new ve.ui.Command( 'preformatted', 'format', 'convert', 
'mwPreformatted' )
 );
+ve.ui.commandRegistry.register(
+       new ve.ui.Command( 'insertTable', 'table', 'create', {
+               header: true,
+               rows: 3,
+               cols: 4,
+               htmlAttributes: [
+                       {
+                               values: {
+                                       class: 'wikitable'
+                               }
+                       }
+               ]
+       } )
+);

-- 
To view, visit https://gerrit.wikimedia.org/r/168961
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I094b1823248e16dd3b9a0a10ba13104f14798621
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to