Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the URL of the uploaded image is misformed in the html %22 #69

Open
overcatbe opened this issue Sep 20, 2022 · 0 comments
Open

the URL of the uploaded image is misformed in the html %22 #69

overcatbe opened this issue Sep 20, 2022 · 0 comments

Comments

@overcatbe
Copy link

overcatbe commented Sep 20, 2022

Hi, i have successfully embedded this script, but the url is being misformed like this:
DELTA OK and readable:
{"ops":[{"insert":"Hello World!"},{"insert":{"image":"https://domain/1_2022-09-20_15:18:31.jpeg"}},{"insert":"\nSome initial "},{"attributes":{"bold":true},"insert":"bold"},{"insert":" text\n"}]}

HTML:
"<p>Hello World!<img src=\"https:/domain/1_2022-09-20_15:18:31.jpeg\"></p><p>Some initial <strong>bold</strong> text</p>"

So the image is added like this:
<img src=[\"https:/domain/1_2022-09-20_16:00:10.jpeg\"](https://domain/%22https://domain/1_2022-09-20_16:00:10.jpeg/%22)>

How do i get rid of the extra domain in the front and the %22 ?

ERROR from console
https://domain/%22https:/domain/1_2022-09-20_16:00:10.jpeg/%22/ 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant