You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Global-sales/src/components/RoosterEditor/editorOptions/codes/AutoFormatCode.ts

21 lines
703 B
TypeScript

import { AutoFormatOptions } from 'roosterjs-content-model-plugins';
import { CodeElement } from './CodeElement';
export class AutoFormatCode extends CodeElement {
constructor(private options: AutoFormatOptions) {
super();
}
getCode() {
return `new roosterjs.AutoFormatPlugin({
autoBullet: ${this.options.autoBullet},
autoLink: ${this.options.autoLink},
autoNumbering: ${this.options.autoNumbering},
autoUnlink: ${this.options.autoUnlink},
autoHyphen: ${this.options.autoHyphen},
autoFraction: ${this.options.autoFraction},
autoOrdinals: ${this.options.autoOrdinals},
})`;
}
}