JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.66k stars 307 forks source link

Appended videoTagAttrs are losing in editor #1408

Open ChavitiSathish opened 1 month ago

ChavitiSathish commented 1 month ago

Iam trying to add video with autoplay muted in editor, I configured the attributes as below videoTagAttrs: { autoplay: true, muted: true, } . On adding the video url attributes are setting up but when switching to codeview and back to editor all the attributes are loosing only controls = true attribute is only remaining.

Expected behavior If video tagAttrs are configured the editorcontents should not loose attributes.

Screenshots Attaching a video for Quick reference In my Local : screen-capture (63).webm In Suneditor.com : screen-capture (64).webm