User:Martid95/common.js

var surfaceModel = ve.init.target.getSurface.getModel; surfaceModel.getFragment .adjustLinearSelection( 1 ) .collapseToStart .insertContent( [		{ type: 'table' },		{ type: 'tableCaption' },			{ type: 'paragraph' }, 'C', 'a', 'p', 't', 'i', 'o', 'n', { type: '/paragraph' },		{ type: '/tableCaption' },		{ type: 'tableSection', attributes: { style: 'body' } },		{ type: 'tableRow' },		{ type: 'tableCell', attributes: { style: 'header' } },			{ type: 'paragraph' }, 'A', { type: '/paragraph' },		{ type: '/tableCell' },		{ type: 'tableCell', attributes: { style: 'data' } },			{ type: 'paragraph' }, 'A', '1', { type: '/paragraph' },		{ type: '/tableCell' },		{ type: 'tableCell', attributes: { style: 'data' } },			{ type: 'paragraph' }, 'A', '2', { type: '/paragraph' },		{ type: '/tableCell' },		{ type: 'tableCell', attributes: { style: 'data' } },			{ type: 'paragraph' }, 'A', '3', { type: '/paragraph' },		{ type: '/tableCell' },		{ type: '/tableRow' },		{ type: 'tableRow' },		{ type: 'tableCell', attributes: { style: 'header' } }, { type: 'paragraph' }, 'B', { type: '/paragraph' }, { type: '/tableCell' }, { type: 'tableCell', attributes: { style: 'data' } }, { type: 'paragraph' }, 'B', '1', { type: '/paragraph' }, { type: '/tableCell' }, { type: 'tableCell', attributes: { style: 'data' } }, { type: 'paragraph' }, 'B', '2', { type: '/paragraph' }, { type: '/tableCell' }, { type: 'tableCell', attributes: { style: 'data' } }, { type: 'paragraph' }, 'B', '3', { type: '/paragraph' }, { type: '/tableCell' }, { type: '/tableRow' }, { type: '/tableSection' }, { type: '/table' } ] );