Issue #3657πŸ’¬ AnsweredOpened July 30, 2021by san-1230 reactions

How to update src of video tag at dynamically?

Quick answerby artf

@san-123 please follow the issue template and create a reproducible demo because it's hard to understand what is wrong here

Read full answer below ↓

Question

Hi @artf , I have drag and drop multiple video tag same page and each one generated random number to ID attributes. Two things doubt, Frist one is that I tried updated sample video path to src video tag based on Id attribute but not working for me. How to update src to video tag based Id attribute? Second one is that style manager issues, style manager working with image tag, added inline styles ex : .rt123{Height:120px;Width:200px;} for image .rt123 is id attribute. For video tag, Id attribute is randmID , so style manager not applied to video tags. How to change this.

Answers (2)

artfβ€’ July 31, 2021

@san-123 please follow the issue template and create a reproducible demo because it's hard to understand what is wrong here

GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @san-123. Great question about How to update src of video tag at dynamically?. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Most ope...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.