Skip to content

fix(video): remove deprecated modestbranding option from YouTube videos - #6815

Open
nimitbhagat wants to merge 5 commits into
GrapesJS:devfrom
nimitbhagat:FIX/REMOVE-YOUTUBE-MODESTBRANDING
Open

fix(video): remove deprecated modestbranding option from YouTube videos#6815
nimitbhagat wants to merge 5 commits into
GrapesJS:devfrom
nimitbhagat:FIX/REMOVE-YOUTUBE-MODESTBRANDING

Conversation

@nimitbhagat

Copy link
Copy Markdown
  • Remove modestbranding property from default component traits
  • Remove modestbranding parameter parsing from YouTube URL query string handling
  • Remove modestbranding checkbox trait from component configuration
  • Remove modestbranding URL parameter generation from getYoutubeSrc method
  • Update ComponentVideoView to stop listening for modestbranding change events
  • The modestbranding option was deprecated by YouTube and is no longer functional

nimitbhagat and others added 5 commits August 19, 2026 06:01
- Remove modestbranding property from default component traits
- Remove modestbranding parameter parsing from YouTube URL query string handling
- Remove modestbranding checkbox trait from component configuration
- Remove modestbranding URL parameter generation from getYoutubeSrc method
- Update ComponentVideoView to stop listening for modestbranding change events
- The modestbranding option was deprecated by YouTube and is no longer functional
…pesJS#6804)

The `prevent` option delegated to `CanvasView.preventDefault`, resolved
through `Canvas.getCanvasView()` with optional chaining, so the default
browser action was silently kept whenever the canvas view was not
available (editor not rendered yet, canvas removed). `Commands`,
`Canvas` and the editor instance were also captured when the keymap was
added instead of when it runs.

Move the prevention to a shared `preventDefault` DOM util, which also
handles the original event of the canvas frame (`_parentEvent`), and
resolve the modules inside the handler.
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.18 to 8.5.23.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@8.5.18...8.5.23)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.23
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix isStyleInFlow

* Fix save restore

* Format
@nimitbhagat
nimitbhagat force-pushed the FIX/REMOVE-YOUTUBE-MODESTBRANDING branch 2 times, most recently from 3ebdca8 to 5419955 Compare August 20, 2026 13:20
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

Successfully merging this pull request may close these issues.

3 participants