mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-14 20:58:51 +01:00
14 lines
415 B
TypeScript
14 lines
415 B
TypeScript
import {openModel} from "../menu/model";
|
|
import {flashcard} from "../../config/flashcard";
|
|
|
|
export const initRiffCard = () => {
|
|
openModel({
|
|
title: window.siyuan.languages.riffCard,
|
|
icon: "iconRiffCard",
|
|
html: flashcard.genHTML(),
|
|
bindEvent(modelMainElement: HTMLElement) {
|
|
flashcard.element = modelMainElement;
|
|
flashcard.bindEvent();
|
|
}
|
|
});
|
|
};
|