JiHong88 / suneditor

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

Appended videoTagAttrs are losing in editor #1408

Closed ChavitiSathish closed 3 months ago

ChavitiSathish commented 5 months 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

JiHong88 commented 3 months ago

Version 2.47.0 has been updated. thank you