/*! * VisualEditor MediaWiki temporary wikitext editor widget * * @copyright 2011-2017 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.TextInputWidget, but is designed to * be loaded before any core VE code or dependencies, e.g. OOUI. * * @class * @constructor */ mw.libs.ve.MWTempWikitextEditorWidget = function VeUiMwTempWikitextEditorWidget( config ) { var conf = mw.config.get( 'wgVisualEditor' ), dir = conf.pageLanguageDir, lang = conf.pageLanguageCode; this.$element = $( '