Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/layout-engine/style-engine/src/ooxml/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ export function resolveRunProperties(
if (!params.translatedLinkedStyles?.styles) {
return inlineRpr ?? {};
}
if (!inlineRpr) {
inlineRpr = {} as RunProperties;
}
inlineRpr = inlineRpr ? { ...inlineRpr } : ({} as RunProperties);
// Getting properties from style
const paragraphStyleId = resolvedPpr?.styleId as string | undefined;
const paragraphStyleProps = resolveStyleChain('runProperties', params, paragraphStyleId) as RunProperties;
Expand Down Expand Up @@ -158,9 +156,7 @@ export function resolveParagraphProperties(
inlineProps: ParagraphProperties | null | undefined,
tableInfo: TableInfo | null | undefined,
): ParagraphProperties {
if (!inlineProps) {
inlineProps = {} as ParagraphProperties;
}
inlineProps = inlineProps ? { ...inlineProps } : ({} as ParagraphProperties);
if (!params.translatedLinkedStyles?.styles) {
return inlineProps;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/super-editor/src/core/InputRule.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export function inputRulesPlugin(config: InputRulesPluginConfig): Plugin;
*/
export function isWordHtml(html: string): boolean;

export function isSuperdocOriginClipboardHtml(html: string | null | undefined): boolean;

/**
* Handle HTML paste events
*/
Expand Down
Loading
Loading