-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Content Model Support PRE and CODE: step 2 (#1440)
* Support PRE and CODE: step 1 * improve * Support PRE and CODE step 2
- Loading branch information
1 parent
3d74e90
commit e12834e
Showing
16 changed files
with
323 additions
and
128 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
demo/scripts/controls/contentModel/components/model/ContentModelParagraphView.scss
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.modelParagraph { | ||
background-color: #bdf; | ||
} | ||
|
||
.modelDecorator { | ||
background-color: #ccf; | ||
} |
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
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
15 changes: 15 additions & 0 deletions
15
packages/roosterjs-content-model/lib/modelApi/creators/createParagraphDecorator.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,15 @@ | ||
import { ContentModelParagraphDecorator } from '../../publicTypes/decorator/ContentModelParagraphDecorator'; | ||
import { ContentModelSegmentFormat } from '../../publicTypes/format/ContentModelSegmentFormat'; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
export function createParagraphDecorator( | ||
tagName: string, | ||
format?: ContentModelSegmentFormat | ||
): ContentModelParagraphDecorator { | ||
return { | ||
tagName: tagName.toLocaleLowerCase(), | ||
format: { ...(format || {}) }, | ||
}; | ||
} |
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
15 changes: 0 additions & 15 deletions
15
packages/roosterjs-content-model/lib/publicTypes/decorator/ContentModelHeader.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.