본문으로 건너뛰기

subscript

설명

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

사용법

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

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

예제

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

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