본문으로 건너뛰기

superscript

설명

메뉴바/툴바의 "Superscript" 버튼을 누르거나 Event Bus 메서드를 통해 실행될 때 발생합니다

사용법

"superscript": () => boolean | void;
정보

내부 이벤트를 처리하려면 Event Bus 메서드를 사용할 수 있습니다

예제

// RichText 초기화
const editor = new richtext.Richtext("#root", {
// 구성 속성
});
// "superscript" 이벤트 구독
editor.api.on("superscript", () => {
console.log("Superscript was applied");
});
// "superscript" 이벤트 트리거
editor.api.exec("superscript", {});

변경 이력: 이 이벤트는 v2.0에서 추가되었습니다