-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2549 from microsoft/u/juliaroldi/auto-format-demo…
…-site Fix AutorFormat
- Loading branch information
Showing
7 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
demo/scripts/controlsV2/sidePane/editorOptions/codes/AutoFormatCode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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}, | ||
})`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters