diff --git a/src/toRedactor.tsx b/src/toRedactor.tsx index ce486b6..c2ebca1 100644 --- a/src/toRedactor.tsx +++ b/src/toRedactor.tsx @@ -222,13 +222,13 @@ export const toRedactor = (jsonValue: any,options?:IJsonToHtmlOptions) : string } if(jsonValue['classname'] || jsonValue['id']){ if(jsonValue['classname'] && jsonValue['id']){ - text = `${text}` + text = `${text}` } else if(jsonValue['classname'] && !jsonValue['id']){ - text = `${text}` + text = `${text}` } else if(jsonValue['id'] && !jsonValue['classname']){ - text = `${text}` + text = `${text}` } } if (jsonValue.text.includes('\n') && !jsonValue['break']) { diff --git a/test/expectedJson.ts b/test/expectedJson.ts index 7b38a64..5b394de 100644 --- a/test/expectedJson.ts +++ b/test/expectedJson.ts @@ -1717,7 +1717,7 @@ export default { ] }, "inline-classname-and-id": { - "html": '
This is test for adding inline class and id
', + "html": 'This is test for adding inline class and id
', "json": [ { "type": "p",