diff --git a/modules/ve-cite/ve.ui.MWReferenceDialog.js b/modules/ve-cite/ve.ui.MWReferenceDialog.js index 8d220b9d7..f614e832b 100644 --- a/modules/ve-cite/ve.ui.MWReferenceDialog.js +++ b/modules/ve-cite/ve.ui.MWReferenceDialog.js @@ -56,85 +56,6 @@ ve.ui.MWReferenceDialog.static.actions = [ ve.ui.MWReferenceDialog.static.modelClasses = [ ve.dm.MWReferenceNode ]; -ve.ui.MWReferenceDialog.static.includeCommands = null; - -ve.ui.MWReferenceDialog.static.excludeCommands = [ - // No formatting - 'paragraph', - 'heading1', - 'heading2', - 'heading3', - 'heading4', - 'heading5', - 'heading6', - 'preformatted', - 'blockquote', - // No tables - 'insertTable', - 'deleteTable', - 'mergeCells', - 'tableCaption', - 'tableCellHeader', - 'tableCellData', - // No structure - 'bullet', - 'bulletWrapOnce', - 'number', - 'numberWrapOnce', - 'indent', - 'outdent', - // References - 'reference', - 'reference/existing', - 'citoid', - 'referencesList' -]; - -/** - * Get the import rules for the surface widget in the dialog. - * - * @see ve.dm.ElementLinearData#sanitize - * @return {Object} Import rules - */ -ve.ui.MWReferenceDialog.static.getImportRules = function () { - const rules = ve.copy( ve.init.target.constructor.static.importRules ); - return ve.extendObject( - rules, - { - all: { - blacklist: ve.extendObject( - { - // Nested references are impossible - mwReference: true, - mwReferencesList: true, - // Lists and tables are actually possible in wikitext with a leading - // line break but we prevent creating these with the UI - list: true, - listItem: true, - definitionList: true, - definitionListItem: true, - table: true, - tableCaption: true, - tableSection: true, - tableRow: true, - tableCell: true, - mwTable: true, - mwTransclusionTableCell: true - }, - ve.getProp( rules, 'all', 'blacklist' ) - ), - // Headings are not possible in wikitext without HTML - conversions: ve.extendObject( - { - mwHeading: 'paragraph' - }, - ve.getProp( rules, 'all', 'conversions' ) - ) - } - } - ); -}; - /* Methods */ /**