Tui.editor: How to load a Base64 image instead of blob?

Created on 9 Apr 2019  路  4Comments  路  Source: nhn/tui.editor

Is there a way to load a base64 string into the editor without having to select a file?

Thanks

Question

Most helpful comment

@igasparetto Hi, You can use base64 code in the editor.

<img src="data:image/gif;base64,YOUR_BASE64_CODE" />

Is it what you want?

All 4 comments

@igasparetto Sorry for late reply. Currently there is no api to load image using base64 string.
When select a image file, it is changed to base64. But there is no way to directly load base64 image string.

That is a shame.
Improvement?

@igasparetto Hi, You can use base64 code in the editor.

<img src="data:image/gif;base64,YOUR_BASE64_CODE" />

Is it what you want?

Thank you @igasparetto.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gilles-GitHub picture Gilles-GitHub  路  4Comments

existme picture existme  路  3Comments

cyberjacob picture cyberjacob  路  4Comments

alirizaadiyahsi picture alirizaadiyahsi  路  4Comments

dioscuroi picture dioscuroi  路  3Comments