ux: New focusOnEditor URL param to disable focus

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
This commit is contained in:
John McLear 2021-09-14 20:43:35 +01:00 committed by Richard Hansen
parent 3722d943c7
commit 408a184704
5 changed files with 44 additions and 5 deletions

View file

@ -262,7 +262,7 @@ exports.padeditbar = new class {
}
setEmbedLinks() {
const padUrl = window.location.href.split('?')[0];
const params = '?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false';
const params = '?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false&focusOnEditor=false';
const props = 'width="100%" height="600" frameborder="0"';
if ($('#readonlyinput').is(':checked')) {