Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we get a version of edit that has they key bindings that the presentation maker does? #24

Open
buckmaxwell opened this issue Oct 19, 2020 · 1 comment

Comments

@buckmaxwell
Copy link

The indent / header / etc hot keys are nice.

@Snowflake6
Copy link

Snowflake6 commented Oct 7, 2021

Here you go...

data:text/html,<body bgcolor=CCCCCC onload="checkCookie()" ><div contenteditable="true" style="background-color:EEEEEE;min-height:18px;height:auto;position:relative;margin:20px auto;padding:20px;max-width:900;border:1px solid silver;line-height:1.4;font-size:14px;font-family:Arial,Helvetica,sans-serif;" id="editortext"></div><script>document.querySelectorAll("div").forEach(e=>e.onkeydown=e=>{n=e.ctrlKey&&e.altKey&&e.keyCode-49,x=["formatBlock","formatBlock","justifyLeft","justifyCenter","justifyRight","outdent","indent","insertUnorderedList"][n],y=["<h1>","<div>"][n],x&&document.execCommand(x,!1,y);setCookie("editortext",document.getElementById("editortext").innerHTML,30)});</script><div style="background-color:EEEEEE;height:auto;position:relative;margin:20px auto;padding:20px;max-width:900;border:1px solid silver;line-height:1.4;font-size:14px;font-family:Arial,Helvetica,sans-serif;"> <b>Ctrl+B Bold</b><br> <i>Ctrl+I Italic</i><br>%09Ctrl+Alt+1 Header<br>%09Ctrl+Alt+2 Normal<br>%09Ctrl+Alt+3 Align Left<br>%09Ctrl+Alt+4 Align Center<br>%09Ctrl+Alt+5 Align Right<br>%09Ctrl+Alt+6 Outdent<br>%09Ctrl+Alt+7 Indent<br>%09Ctrl+Alt+8 Bullet<br></div></body>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants