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
output- <img class="ql-image" src="data:image/jpeg;base64,/.....">
expected out put - <img alt="sample alt" class="ql-image" src="data:image/jpeg;base64,/.....">
The delta is working correctly quilljs reader but for some reason when I convert delta to HTML then alt tags are missing
converter code - var converter = new QuillDeltaToHtmlConverter(posts.body.ops,cfg); console.log("Data") converter.beforeRender((GroupType,data)=>{ console.log(data) }) var html = converter.convert(); // console.log("HTML----"); posts.body = html;
expected output -
output got -
The text was updated successfully, but these errors were encountered:
The problem comes when Delta contains images with alt attribute. Below is Delta input
output-
<img class="ql-image" src="data:image/jpeg;base64,/.....">
expected out put -
<img alt="sample alt" class="ql-image" src="data:image/jpeg;base64,/.....">
The delta is working correctly quilljs reader but for some reason when I convert delta to HTML then alt tags are missing
converter code -
var converter = new QuillDeltaToHtmlConverter(posts.body.ops,cfg); console.log("Data") converter.beforeRender((GroupType,data)=>{ console.log(data) }) var html = converter.convert(); // console.log("HTML----"); posts.body = html;
expected output -
output got -
The text was updated successfully, but these errors were encountered: