본문으로 건너뛰기

indent

설명

블록 들여쓰기를 증가시킬 때 발생합니다

사용법

"indent": ({ step: number }) => boolean | void;

매개변수

indent 이벤트의 callback은 다음 매개변수를 포함한 객체를 받을 수 있습니다:

  • step - 들여쓰기가 증가한 단계 값
정보

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

예제

// RichText 초기화
const editor = new richtext.Richtext("#root", {
// 구성 속성
});
// "indent" 이벤트 구독
editor.api.on("indent", (obj) => {
console.log(obj);
console.log("The indention was increased");
});

변경 로그: 해당 이벤트는 v2.0에서 추가되었습니다