Closed sdimitrenco closed 1 year ago
Chrome
https://jsfiddle.net/sdimitrenco/wao1rh0q/30/
That is my components struct
{ "type": "link", "components": [ { "type": "image", "attributes": { "src": "http://localhost:8003/swt/upload/files/svg_images/envelope-square-solid.svg", } }, { "tagName": "span", "type": "text", "content": "some@test.com", } ] }
If I change the text in the span tag in the text editor, then remove focus from that word, it returns the previous state of the text. The structure of the components looks normal, a link, but inside the picture and text inside the span tag.
DEMO
LIVE https://jsfiddle.net/sdimitrenco/wao1rh0q/30/
You shouldn't have "content" inside your text span, indeed if you replace it with "components": "some@test.com", it will work properly.
"content"
"components": "some@test.com",
GrapesJS version
What browser are you using?
Chrome
Reproducible demo link
https://jsfiddle.net/sdimitrenco/wao1rh0q/30/
Describe the bug
That is my components struct
If I change the text in the span tag in the text editor, then remove focus from that word, it returns the previous state of the text. The structure of the components looks normal, a link, but inside the picture and text inside the span tag.
DEMO
LIVE https://jsfiddle.net/sdimitrenco/wao1rh0q/30/
Code of Conduct