-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move INHERITABLE_PROPERTIES to roosterjs-editor-types
- Loading branch information
Showing
4 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/roosterjs-content-model-dom/lib/modelToDom/optimizers/removeUnnecessaryStyle.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
11 changes: 1 addition & 10 deletions
11
packages/roosterjs-editor-dom/lib/htmlSanitizer/getInheritableStyles.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
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,9 @@ | ||
// Inheritable CSS properties | ||
// Ref: https://www.w3.org/TR/CSS21/propidx.html | ||
export const INHERITABLE_PROPERTIES = ( | ||
'border-spacing,caption-side,color,' + | ||
'cursor,direction,empty-cells,font-family,font-size,font-style,font-variant,font-weight,' + | ||
'font,letter-spacing,line-height,list-style-image,list-style-position,list-style-type,' + | ||
'list-style,orphans,quotes,text-align,text-indent,text-transform,visibility,white-space,' + | ||
'widows,word-spacing' | ||
).split(','); |
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,26 +1,27 @@ | ||
export { | ||
AttributeCallback, | ||
AttributeCallbackMap, | ||
CssStyleCallback, | ||
CssStyleCallbackMap, | ||
ElementCallback, | ||
StringMap, | ||
ElementCallbackMap, | ||
PredefinedCssMap, | ||
} from './htmlSanitizerCallbackTypes'; | ||
export { DOMEventHandlerFunction, DOMEventHandlerObject, DOMEventHandler } from './domEventHandler'; | ||
export { TrustedHTMLHandler } from './TrustedHTMLHandler'; | ||
export { SizeTransformer } from './SizeTransformer'; | ||
export { | ||
ArrayItemType, | ||
DefinitionBase, | ||
StringDefinition, | ||
NumberDefinition, | ||
BooleanDefinition, | ||
ArrayDefinition, | ||
ObjectDefinition, | ||
ObjectPropertyDefinition, | ||
CustomizeDefinition, | ||
Definition, | ||
} from './Definition'; | ||
export { CoreCreator } from './CoreCreator'; | ||
export { | ||
AttributeCallback, | ||
AttributeCallbackMap, | ||
CssStyleCallback, | ||
CssStyleCallbackMap, | ||
ElementCallback, | ||
StringMap, | ||
ElementCallbackMap, | ||
PredefinedCssMap, | ||
} from './htmlSanitizerCallbackTypes'; | ||
export { DOMEventHandlerFunction, DOMEventHandlerObject, DOMEventHandler } from './domEventHandler'; | ||
export { TrustedHTMLHandler } from './TrustedHTMLHandler'; | ||
export { SizeTransformer } from './SizeTransformer'; | ||
export { | ||
ArrayItemType, | ||
DefinitionBase, | ||
StringDefinition, | ||
NumberDefinition, | ||
BooleanDefinition, | ||
ArrayDefinition, | ||
ObjectDefinition, | ||
ObjectPropertyDefinition, | ||
CustomizeDefinition, | ||
Definition, | ||
} from './Definition'; | ||
export { CoreCreator } from './CoreCreator'; | ||
export { INHERITABLE_PROPERTIES } from '../Constants'; |