quill-delta-python
quill-delta-python copied to clipboard
Problem with var(--some-color)
This will break:
ops = [{'attributes': {'color': 'var(--powder-700)', 'link': 'https://stackoverflow.com/questions/tagged/html'}, 'insert': 'html'}]
html.render(ops)
When I copy pasted some random text from Stackoverflow, which included this link into quill editor (I think my future users will copy paste text from somewhere), application breaks. I think I'm doing things correctly please adjust me if I don't:
- I take content of Quill Editor with getContents() and send it as json.
- I store that json in db
- When user goes to page which is previously created I use html.render(json.loads(page.content)['ops']) Is there a way to ignore new/unsupported features when I call html.render so application won't break?
Thanks, Stefan
any solution for this?