FIX: Allow playsinline for videos in posts

FIX: Allow playsinline for videos in posts

This is used in webkit browsers mostly.

diff --git a/app/assets/javascripts/pretty-text/addon/white-lister.js b/app/assets/javascripts/pretty-text/addon/white-lister.js
index 0efb906..8b65c68 100644
--- a/app/assets/javascripts/pretty-text/addon/white-lister.js
+++ b/app/assets/javascripts/pretty-text/addon/white-lister.js
@@ -209,6 +209,7 @@ export const DEFAULT_LIST = [
   "video[height]",
   "video[loop]",
   "video[muted]",
+  "video[playsinline]",
   "video[poster]",
   "video[preload]",
   "video[width]",

GitHub sha: c65c3407

1 Like