/*! * VisualEditor MediaWiki temporary wikitext editor widget * * @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ mw.libs.ve = mw.libs.ve || {}; /** * MediaWiki temporary wikitext editor widget * * This widget can be used to show the user a basic editing interface * while VE libraries are still loading. * * It has a similar API to OO.ui.InputWidget, but is designed to * be loaded before any core VE code or dependencies, e.g. OOUI. * * @class * * @constructor * @param {Object} config Configuration options * @cfg {string} value Raw wikitext to edit */ mw.libs.ve.MWTempWikitextEditorWidget = function VeUiMwTempWikitextEditorWidget( config ) { var conf = mw.config.get( 'wgVisualEditor' ), dir = conf.pageLanguageDir, lang = conf.pageLanguageCode; this.$element = $( '