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

#847 remove video controls attr by default #851

Conversation

zt1983811
Copy link

Context:

Change:

  • removed element.setAttribute('controls', true) in video.js function _setTagAttrs like that controls=true will stop auto append

Example

  • Before:
    image

  • After
    image

@zt1983811 zt1983811 changed the title [#847] remove video controls attr by default #847 remove video controls attr by default Aug 11, 2021
@JiHong88
Copy link
Owner

@zt1983811 This commit will always remove the control properties, even when pasting, etc.
I'll add an video control option to the next version.

@JiHong88 JiHong88 closed this Aug 11, 2021
@zt1983811
Copy link
Author

@JiHong88 I tested it and it doesn't really remove it if you add it through HTML code editor. I can make a button in add video popup to add it or remove it if you want?

@SystemChanger
Copy link
Contributor

SystemChanger commented Aug 11, 2021

@zt1983811 It looks like JiHong is talking about pasting via "ctrl+v".
@JiHong88 How could we reproduce this? Maybe from other editors?
I have tested copying the video from this editor: https://html-online.com/editor/ and the video was copied with "controls" tags from the source, which is correct behavior (isn't it?).
Copying the video from one suneditor instance to another works the same.
Adding the video with a "video" button from url works correctly too (it inserts as iframe)

Also, I found that we have some issues not related to our current problem:

  1. Problem with copying videos that was added via code-view mode from one suneditor instance to another.
    image
  2. Videos are not added from the file system (just nothing happens) (option for it is enabled, you can check it on npm run dev).
    OS: Windows 10
    Browser: Google Chrome
    Version: latest

@JiHong88 JiHong88 added the bug label Nov 24, 2021
@JiHong88 JiHong88 added this to the 2.42.0 milestone Nov 24, 2021
JiHong88 added a commit that referenced this pull request Nov 24, 2021
bug when paste the video tag,
edit html attributes in code view mode
@JiHong88
Copy link
Owner

The 2.42.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants