Scale embedded videos and audios to fit their container (#3943)

* Update videoparser.js

* Update audioparser.js

* Update videoparser.js

* Update audioparser.js
fix-syncer
donmor 2019-10-19 18:44:18 +08:00 zatwierdzone przez Jeremy Ruston
rodzic 6ca1e90659
commit 588af44d4c
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -17,7 +17,8 @@ var AudioParser = function(type,text,options) {
type: "element",
tag: "audio",
attributes: {
controls: {type: "string", value: "controls"}
controls: {type: "string", value: "controls"},
style: {type: "string", value: "width: 100%; object-fit: contain"}
}
},
src;

Wyświetl plik

@ -17,7 +17,8 @@ var VideoParser = function(type,text,options) {
type: "element",
tag: "video",
attributes: {
controls: {type: "string", value: "controls"}
controls: {type: "string", value: "controls"},
style: {type: "string", value: "width: 100%; object-fit: contain"}
}
},
src;