Skip to content

Commit febf50f

Browse files
Export formatContainerProcessor for public API use (#3238)
Export formatContainerProcessor from roosterjs-content-model-dom public API to enable users to use it in processorOverride for custom DOM-to-Model processing. This allows customization of format container elements (e.g., blockquote) processing without relying on internal module paths. Co-authored-by: Jiuqing Song <[email protected]>
1 parent 14b5dc3 commit febf50f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/roosterjs-content-model-dom/lib/domToModel/processors/formatContainerProcessor.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ export const ContextStyles: (keyof (MarginFormat & PaddingFormat))[] = [
2525
];
2626

2727
/**
28-
* @internal
28+
* Content Model Element Processor for format container elements (e.g., blockquote, div)
29+
* Processes elements that create FormatContainer blocks in the content model.
30+
* This processor can be used in processorOverride to customize how specific elements are processed.
31+
* @param group The parent block group
32+
* @param element The DOM element to process
33+
* @param context DOM to Content Model context
2934
*/
3035
export const formatContainerProcessor: ElementProcessor<HTMLElement> = (
3136
group,

packages/roosterjs-content-model-dom/lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export {
99
} from './domToModel/processors/childProcessor';
1010
export { entityProcessor } from './domToModel/processors/entityProcessor';
1111
export { tableProcessor } from './domToModel/processors/tableProcessor';
12+
export { formatContainerProcessor } from './domToModel/processors/formatContainerProcessor';
1213
export { getRegularSelectionOffsets } from './domToModel/utils/getRegularSelectionOffsets';
1314
export { parseFormat } from './domToModel/utils/parseFormat';
1415
export { areSameFormats } from './domToModel/utils/areSameFormats';

0 commit comments

Comments
 (0)