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

remove html tag from template #37

Closed
piyalmaduranga opened this issue Feb 6, 2017 · 5 comments
Closed

remove html tag from template #37

piyalmaduranga opened this issue Feb 6, 2017 · 5 comments
Labels

Comments

@piyalmaduranga
Copy link

piyalmaduranga commented Feb 6, 2017

Hi @artf
In grapesjs editor i want to remove <img> tag of template before save template, how can i do that ? (we can delete img tag using editor ui , but i want to remove img tag code side , is it have any function to remove tag?)
In drag and drop blockManager , can i get drop event ?

@artf
Copy link
Member

artf commented Feb 6, 2017

So basically you drop the Block inside the canvas but you don't want to see it in the code, right?
About the drop event, in the next release, there will be the possibility to catch when a new component is added to the canvas but anyway, I don't think this gonna help you in this particular case.

@piyalmaduranga
Copy link
Author

Hi @artf
i want to remove <img> tag from editor.getHtml();

@artf
Copy link
Member

artf commented Feb 9, 2017

@piyalmaduranga
How do you insert that <img>? getHtml() returns simply a string, if you want you can manipulate before saving it. Anyway, can you explain me your case, because I really don't get the sense of what you're asking.
If you don't want the <img> why do you drop it???

@artf
Copy link
Member

artf commented Feb 21, 2017

#35

@lock
Copy link

lock bot commented Sep 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the outdated label Sep 18, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants