본문으로 건너뛰기

outdent

설명

블록 들여쓰기를 감소시킬 때 발생합니다.

사용법

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

파라미터

outdent 이벤트의 callback은 다음 파라미터를 포함하는 객체를 받을 수 있습니다:

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

내부 이벤트를 처리하려면 Event Bus 메서드를 사용하십시오.

예시

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

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