This commit is contained in:
Vanessa 2023-05-18 21:10:25 +08:00
parent 839308173a
commit ca2d08de27
3 changed files with 8 additions and 2 deletions

View file

@ -1502,6 +1502,9 @@ export class WYSIWYG {
let shiftStartElement: HTMLElement;
this.element.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
this.app.plugins.forEach(item => {
item.eventBus.emit("click-editorcontent", event);
});
hideElements(["hint", "util"], protyle);
const ctrlIsPressed = event.metaKey || event.ctrlKey;
/// #if !MOBILE