0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 22:52:40 +00:00

Update default footnote text

This commit is contained in:
G.Ambatte
2022-10-05 21:20:39 +13:00
parent dfa8aea1ec
commit 5de63799c2

View File

@@ -252,7 +252,7 @@ const CodeEditor = createClass({
const cursorPos = this.codeMirror.getCursor();
const text = this.codeMirror.getValue().split('\n').slice(0, cursorPos.line).reverse().filter((line)=>{return line.slice(0, header.length) == header && line; })[0] || 'CHAPTER TITLE';
const text = this.codeMirror.getValue().split('\n').slice(0, cursorPos.line).reverse().filter((line)=>{return line.slice(0, header.length) == header && line; })[0] || 'PART 1 | SECTION NAME';
this.codeMirror.replaceSelection(`\n{{footnote ${text}}}\n{{pageNumber,auto}}\n\n\\page\n\n`, 'end');
},