Change orientation on Mobile


I would like to change the orientation of the phone preferrably when clicking in a Rich Text Editor to landscape, but for starters even on just the click of a button. I could achieve this in the dev toolbar of chrome, and it works just fine, but not on an actual phone. Is there an easy way to do it ? right now I'm using the JS attached.


Keep up to date on this post and subscribe to comments

November 8, 2019 - 4:24am

Quick update:


It works fine on android, but unfortunately from iOS 10, the fullscreen API isn't supported, which is needed for the orientation lock... If someone has a workaround for that, or some kind of trick, it would be much appreciated :D