mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 19:48:37 -05:00
Notebooks: Hide link and image buttons in text cell toolbar in WYSIWYG mode (#12240)
* hide link and image buttons in WYSIWYG mode * defined taskbar actions * rename arrays
This commit is contained in:
@@ -541,6 +541,12 @@ export class ToggleViewAction extends Action {
|
||||
this.class += ' active';
|
||||
context.cellModel.showPreview = this.showPreview;
|
||||
context.cellModel.showMarkdown = this.showMarkdown;
|
||||
// Hide link and image buttons in WYSIWYG mode
|
||||
if (this.showPreview && !this.showMarkdown) {
|
||||
context.hideLinkAndImageButtons();
|
||||
} else {
|
||||
context.showLinkAndImageButtons();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user