This commit is contained in:
parent
26f296a87a
commit
350b1bf51c
2 changed files with 5 additions and 11 deletions
|
@ -16,7 +16,6 @@ import {Constants} from "../constants";
|
|||
import {Setting} from "./Setting";
|
||||
import {Menu} from "./Menu";
|
||||
import {Protyle} from "../protyle";
|
||||
import {renderAVAttribute as blockAttrRenderAVAttribute} from "../protyle/render/av/blockAttr";
|
||||
import {openMobileFileById} from "../mobile/editor";
|
||||
import {lockScreen, exitSiYuan} from "../dialog/processSystem";
|
||||
import {Model} from "../layout/Model";
|
||||
|
@ -25,7 +24,6 @@ import {getAllEditor} from "../layout/getAll";
|
|||
|
||||
let openTab;
|
||||
let openWindow;
|
||||
let renderAVAttribute;
|
||||
/// #if MOBILE
|
||||
openTab = () => {
|
||||
// TODO: Mobile
|
||||
|
@ -33,9 +31,6 @@ openTab = () => {
|
|||
openWindow = () => {
|
||||
// TODO: Mobile
|
||||
};
|
||||
renderAVAttribute = (element: HTMLElement, id: string, protyle: IProtyle, cb?: (element: HTMLElement) => void) => {
|
||||
// TODO: Mobile
|
||||
};
|
||||
/// #else
|
||||
openWindow = (options: {
|
||||
position?: IPosition,
|
||||
|
@ -171,11 +166,6 @@ openTab = (options: {
|
|||
}
|
||||
|
||||
};
|
||||
|
||||
renderAVAttribute = (element: HTMLElement, id: string, protyle: IProtyle, cb?: (element: HTMLElement) => void) => {
|
||||
blockAttrRenderAVAttribute(element, id, protyle, cb);
|
||||
};
|
||||
|
||||
/// #endif
|
||||
|
||||
const getModelByDockType = (type: TDock | string) => {
|
||||
|
@ -208,6 +198,5 @@ export const API = {
|
|||
Menu,
|
||||
Setting,
|
||||
getAllEditor,
|
||||
renderAVAttribute,
|
||||
platformUtils
|
||||
};
|
||||
|
|
|
@ -43,6 +43,7 @@ import {setStorageVal} from "./util/compatibility";
|
|||
import {merge} from "./util/merge";
|
||||
import {getAllModels} from "../layout/getAll";
|
||||
import {isSupportCSSHL} from "./render/searchMarkRender";
|
||||
import {renderAVAttribute} from "./render/av/blockAttr";
|
||||
|
||||
export class Protyle {
|
||||
|
||||
|
@ -463,4 +464,8 @@ export class Protyle {
|
|||
public enable() {
|
||||
enableProtyle(this.protyle);
|
||||
}
|
||||
|
||||
public renderAVAttribute(element: HTMLElement, id: string, cb?: (element: HTMLElement) => void) {
|
||||
renderAVAttribute(element, id, this.protyle, cb);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue