Exclude after-aligned tools when creating target widgets

Bug: T338978
Change-Id: I86d2546926fa58c36d3679a2d6d31b5a89e6364f
This commit is contained in:
Ed Sanders 2023-06-13 18:41:08 +01:00 committed by Esanders
parent fdb3a79ef5
commit 43699fe94c

View file

@ -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 ) );
};