mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-22 11:02:58 +00:00
4bc814f1a0
New changes: 7906a6b9e build: Updating npm dependencies 92e6a5338 TextStyleAnnotation: Don't register abstract base class 456ca9b2e Localisation updates from https://translatewiki.net. a68ba80d2 Get all annotations by ranges dc49d9592 Demos: Default to WMUI theme 222ac7d23 Add unit tests for ve.dm.BranchNode#getAnnotationRanges ba73b9e91 Return annotation ranges in lexicographic order 6e40aa524 Localisation updates from https://translatewiki.net. 1a4640a4a ve.ce.Surface: Remove unused $deactivatedSelection and $findResults 9455e0f0a ve.ce.Surface: Replace text/xcustom clipboard storage with a custom key ddd14aa9b [BREAKING CHANGE] Move paste handling code to ve.ce.ClipboardHandler 19f0e500b CollabProcessDialog: Replace mw.user.getName with platform method ecd607353 Implement pasteSourceDetectors bae9101b7 Localisation updates from https://translatewiki.net. Added files: - src/ce/ve.ce.ClipboardHandler.js - tests/ce/ve.ce.ClipboardHandler.test.js Local changes: * Implement new paste handler architecture * Use new clipboard key Bug: T360624 Bug: T376306 Bug: T78696 Change-Id: Iea10d32b6132ae364d486cc6b96895bb937ac944
31 lines
629 B
JavaScript
31 lines
629 B
JavaScript
/*!
|
|
* VisualEditor ContentEditable MWWikitextSurface class.
|
|
*
|
|
* @copyright See AUTHORS.txt
|
|
*/
|
|
|
|
/**
|
|
* @class
|
|
* @extends ve.ce.Surface
|
|
*
|
|
* @constructor
|
|
* @param {ve.dm.Surface} model
|
|
* @param {ve.ui.Surface} ui
|
|
* @param {Object} [config]
|
|
*/
|
|
ve.ce.MWWikitextSurface = function VeCeMwWikitextSurface() {
|
|
// Parent constructors
|
|
ve.ce.MWWikitextSurface.super.apply( this, arguments );
|
|
};
|
|
|
|
/* Inheritance */
|
|
|
|
OO.inheritClass( ve.ce.MWWikitextSurface, ve.ce.Surface );
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
ve.ce.MWWikitextSurface.prototype.createClipboardHandler = function () {
|
|
return new ve.ce.MWWikitextClipboardHandler( this );
|
|
};
|