even better sandbox
This commit is contained in:
parent
0580db6c68
commit
668e9a050e
10 changed files with 169 additions and 19 deletions
4
static/js/vendor/codejar.js
vendored
4
static/js/vendor/codejar.js
vendored
|
@ -306,8 +306,8 @@ export function CodeJar(editor, highlight, opt = {}) {
|
|||
}
|
||||
}
|
||||
function handleSelfClosingCharacters(event) {
|
||||
const open = `([{'"`;
|
||||
const close = `)]}'"`;
|
||||
const open = `([{'"\``;
|
||||
const close = `)]}'"\``;
|
||||
if (open.includes(event.key)) {
|
||||
preventDefault(event);
|
||||
const pos = save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue