添加插入音频菜单
This commit is contained in:
@@ -51,6 +51,7 @@ import { Print } from "./base/Print.ts";
|
||||
import { Link } from "./insert/Link.ts";
|
||||
import { Image } from "./insert/Image.ts";
|
||||
import { Video } from "./insert/Video.ts";
|
||||
import { Audio } from "./insert/Audio.ts";
|
||||
|
||||
/**
|
||||
* 经典菜单栏
|
||||
@@ -112,6 +113,7 @@ export class Ribbon extends HTMLElement implements UAIEditorEventListener {
|
||||
insertMenuLink!: Link;
|
||||
insertMenuImage!: Image;
|
||||
insertMenuVideo!: Video;
|
||||
insertMenuAudio!: Audio;
|
||||
|
||||
constructor(defaultToolbarMenus: Record<string, any>[]) {
|
||||
super();
|
||||
@@ -310,6 +312,9 @@ export class Ribbon extends HTMLElement implements UAIEditorEventListener {
|
||||
|
||||
this.insertMenuVideo = new Video({ menuType: "button", enable: true, huge: true });
|
||||
this.eventComponents.push(this.insertMenuVideo);
|
||||
|
||||
this.insertMenuAudio = new Audio({ menuType: "button", enable: true, huge: true });
|
||||
this.eventComponents.push(this.insertMenuAudio);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -464,5 +469,6 @@ export class Ribbon extends HTMLElement implements UAIEditorEventListener {
|
||||
group1.appendChild(this.insertMenuLink);
|
||||
group1.appendChild(this.insertMenuImage);
|
||||
group1.appendChild(this.insertMenuVideo);
|
||||
group1.appendChild(this.insertMenuAudio);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user