You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There have been instances where an author has managed to copy and paste inline styling from Word into our CMS, which then breaks Interweave SSR.
We are fixing this by sanitising pasted content in our CMS, but thought it might be worth documenting in case someone also runs into the following error:
This error is triggered when Interweave SSR tries to parse the inline styles, and one of the styles has a property but no value:
<p><em style="border: 0px solid rgb(229, 231, 235); color: ;"><b>I'm pasted from Word but missing the color value</b></em></p>
It would be ideal if we could handle the SyntaxError thrown in createStyleDeclaration in situations like this, so it fails more gracefully. For example, skipping the offending property and logging a warning.
The text was updated successfully, but these errors were encountered:
There have been instances where an author has managed to copy and paste inline styling from Word into our CMS, which then breaks Interweave SSR.
We are fixing this by sanitising pasted content in our CMS, but thought it might be worth documenting in case someone also runs into the following error:
This error is triggered when Interweave SSR tries to parse the inline styles, and one of the styles has a property but no value:
<p><em style="border: 0px solid rgb(229, 231, 235); color: ;"><b>I'm pasted from Word but missing the color value</b></em></p>
It would be ideal if we could handle the
SyntaxError
thrown increateStyleDeclaration
in situations like this, so it fails more gracefully. For example, skipping the offending property and logging a warning.The text was updated successfully, but these errors were encountered: