|
@@ -14,6 +14,7 @@ import {addAssetLink, bindAssetEvent, editAssetItem, getAssetHTML, updateAssetCe
|
|
import {Constants} from "../../../constants";
|
|
import {Constants} from "../../../constants";
|
|
import {hideElements} from "../../ui/hideElements";
|
|
import {hideElements} from "../../ui/hideElements";
|
|
import {pathPosix} from "../../../util/pathName";
|
|
import {pathPosix} from "../../../util/pathName";
|
|
|
|
+import {openEmojiPanel} from "../../../emoji";
|
|
|
|
|
|
export const openMenuPanel = (options: {
|
|
export const openMenuPanel = (options: {
|
|
protyle: IProtyle,
|
|
protyle: IProtyle,
|
|
@@ -501,6 +502,17 @@ export const openMenuPanel = (options: {
|
|
event.preventDefault();
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
event.stopPropagation();
|
|
break;
|
|
break;
|
|
|
|
+ } else if (type === "update-icon") {
|
|
|
|
+ const rect = target.getBoundingClientRect();
|
|
|
|
+ openEmojiPanel("", "av", {
|
|
|
|
+ x: rect.left,
|
|
|
|
+ y: rect.bottom,
|
|
|
|
+ h: rect.height,
|
|
|
|
+ w: rect.width
|
|
|
|
+ });
|
|
|
|
+ event.preventDefault();
|
|
|
|
+ event.stopPropagation();
|
|
|
|
+ break;
|
|
} else if (type === "showAllCol") {
|
|
} else if (type === "showAllCol") {
|
|
const doOperations: IOperation[] = [];
|
|
const doOperations: IOperation[] = [];
|
|
const undoOperations: IOperation[] = [];
|
|
const undoOperations: IOperation[] = [];
|