big commit
This commit is contained in:
parent
aff885cf17
commit
b506f5a219
22 changed files with 692 additions and 556 deletions
7
static/js/vendor/codejar.js
vendored
7
static/js/vendor/codejar.js
vendored
|
@ -23,9 +23,10 @@ export function CodeJar(editor, highlight, opt = {}) {
|
|||
editor.setAttribute('contenteditable', 'plaintext-only');
|
||||
editor.setAttribute('spellcheck', options.spellcheck ? 'true' : 'false');
|
||||
editor.style.outline = 'none';
|
||||
editor.style.overflowWrap = 'break-word';
|
||||
editor.style.overflowY = 'auto';
|
||||
editor.style.whiteSpace = 'pre-wrap';
|
||||
// PATCH(liquidex): I think I know better how I want to handle overflow.
|
||||
// editor.style.overflowWrap = 'break-word';
|
||||
// editor.style.overflowY = 'auto';
|
||||
editor.style.whiteSpace = 'pre';
|
||||
const doHighlight = (editor, pos) => {
|
||||
highlight(editor, pos);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue