[WIKI-481] refactor: editor parser #7261
This commit is contained in:
parent
25a6cd49fc
commit
e09aeab5b8
2 changed files with 47 additions and 22 deletions
19
packages/editor/src/ce/helpers/parser.ts
Normal file
19
packages/editor/src/ce/helpers/parser.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* @description function to extract all additional assets from HTML content
|
||||
* @param htmlContent
|
||||
* @returns {string[]} array of additional asset sources
|
||||
*/
|
||||
export const extractAdditionalAssetsFromHTMLContent = (_htmlContent: string): string[] => [];
|
||||
|
||||
/**
|
||||
* @description function to replace additional assets in HTML content with new IDs
|
||||
* @param props
|
||||
* @returns {string} HTML content with replaced additional assets
|
||||
*/
|
||||
export const replaceAdditionalAssetsInHTMLContent = (props: {
|
||||
htmlContent: string;
|
||||
assetMap: Record<string, string>;
|
||||
}): string => {
|
||||
const { htmlContent } = props;
|
||||
return htmlContent;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue