mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Exclude after-aligned tools when creating target widgets
Bug: T338978 Change-Id: I86d2546926fa58c36d3679a2d6d31b5a89e6364f
This commit is contained in:
parent
fdb3a79ef5
commit
43699fe94c
|
@ -299,7 +299,9 @@ ve.init.mw.Target.prototype.createTargetWidget = function ( config ) {
|
|||
// Reset to visual mode for target widgets
|
||||
modes: [ 'visual' ],
|
||||
defaultMode: 'visual',
|
||||
toolbarGroups: this.toolbarGroups,
|
||||
toolbarGroups: this.toolbarGroups.filter( function ( group ) {
|
||||
return group.align !== 'after';
|
||||
} ),
|
||||
surfaceClasses: this.getSurfaceClasses()
|
||||
}, config ) );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue