BUG: src automatically added to video tag
Question
Hi @artf,
Thanks for building and maintaining this wonderful package.
Issue I am using Nicepages to build template and upload it to my webapp. I have integrated with Grapesjs, which allows admins to edit the templates easily. The issue that I am facing is Nicepages adds video tag as follows
<video>
<source src="PATH_TO_VIDEO" type="mime/type"/>
</video>
When this template is opened in the Grapesjs, grapesjs adds source to the parent video tag like this
<video src="SOME_SVG_CODE" >
<source src="PATH_TO_VIDEO" type="mime/type"/>
</video>
If you can help me to resolve this issue, that would be great. I am happy to fix it in GrapesJS and make a pull request
Answers (1)
The default video component in GrapesJS is handled differently (without source). In your case, I'd suggest extending the default one and add the support for sources.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2369
Where in the grapesjs code does it post an image to an upload endpoint?
My team and I built an application that uses grapesjs to build an email template. When pictures are introduced into the template they are a...
Issue #1466
Editing Saved html editor.setComponents slider load issue
I am working on a project where i integrated grapesJs for users to build there templates, save them in database and edit these saved templa...
Issue #952
Responsive email template builder using Grapes js
@ateshuseyin @artf - Thanks for the great plugin. We started to use Grapes js in our project as an editor for building responsive email tem...
Issue #4529
BUG: When we resize an image with a class 'xyz', all the elements on the page with same class also gets resized because editor adds css to those classes.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 104.0.5112.101 (Official Build) (arm...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.