Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9bb5817
updated html export
ilmartyrk Apr 26, 2018
b994878
add footnote to new line at the end of the document
ilmartyrk Sep 13, 2018
fd60043
seperate content markups from end markups
ilmartyrk Sep 14, 2018
b2996ca
html export footnotes
ilmartyrk Sep 16, 2018
c5818de
fix ordering and attribute loss
ilmartyrk Oct 4, 2018
aff77d3
automatic ordering
ilmartyrk Oct 11, 2018
809b403
add locales
ilmartyrk Oct 11, 2018
035d384
FIX https://github.com/citizenos/citizenos-fe/issues/268
ilmartyrk Oct 28, 2019
bc7df7a
update toolbar button
ilmartyrk Jan 23, 2020
2c65ca1
Fix https://github.com/citizenos/citizenos-fe/issues/337
ilmartyrk Mar 31, 2020
bc5129e
Update styles to work with 1.8.4
ilmartyrk Jun 3, 2020
6b46d09
fix html export
ilmartyrk Jun 9, 2020
72687bb
Fix html export
ilmartyrk Jul 1, 2020
2277a8d
Code update, fix numbering
ilmartyrk Nov 27, 2020
531b650
eslint fixes
ilmartyrk Dec 1, 2020
bec452c
Prepare for first release under Citizen OS org - clean up package.js,…
tiblu Apr 21, 2021
2372917
Add npm autumation
ilmartyrk May 17, 2021
004755a
add package-lock.js
ilmartyrk May 17, 2021
892354f
Fix lint errors
ilmartyrk May 17, 2021
6148833
Update package.json
ilmartyrk May 17, 2021
da020fc
0.1.1
github-actions[bot] May 17, 2021
544e1e4
Update packages
ilmartyrk Aug 12, 2021
aafd9c6
0.1.2
github-actions[bot] Aug 12, 2021
0ccbb23
FIX https://github.com/citizenos/citizenos-fe/issues/760
ilmartyrk Sep 8, 2021
57af6db
FIX lint errors
ilmartyrk Sep 8, 2021
28b33f8
0.1.3
github-actions[bot] Sep 8, 2021
b8b3d6b
Backward compatibility fix
ilmartyrk Sep 9, 2021
5573509
Merge branch 'master' of github.com:citizenos/ep_foot_note
ilmartyrk Sep 9, 2021
a158114
0.1.4
github-actions[bot] Sep 9, 2021
d20d2e5
Create it.json
ErikDW1 Jan 18, 2022
2c5aec8
Update fn counting
ilmartyrk Mar 7, 2022
024123f
0.1.5
github-actions[bot] Mar 7, 2022
6a7f7fd
Merge pull request #3 from ErikDW1/patch-1
ilmartyrk Mar 7, 2022
5f58210
0.1.6
github-actions[bot] Mar 7, 2022
70d312e
Update packages
ilmartyrk Oct 11, 2023
f282e6f
0.1.7
ilmartyrk Oct 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion footNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ function eejsBlock_editbarMenuLeft(hook_name,args,cb){
function getLineHTMLForExport(hook,context){
var fn = checkFootNoteInLine(context.attribLine,context.apool);
if(fn){
return '';
context.lineContent = '';
}
return true;
}


Expand Down
5 changes: 3 additions & 2 deletions static/js/footNote.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function addFootNote(footNoteText){
var footNoteCounter = 1;
//find the last line and add the superscript and the text...
var lastLineNo = this.rep.lines.length() - 1;
var fnssPresent = this.documentAttributeManager.getAttributeOnLine(lastLineNo-1, "fnss");
var fnssPresent = this.documentAttributeManager.getAttributeOnLine(lastLineNo, "fnss");
if(fnssPresent){
footNoteCounter = parseInt(this.rep.lines.atIndex(lastLineNo-1).text.split(" ")[0]);
footNoteCounter = parseInt(this.rep.lines.atIndex(lastLineNo).text.split(" ")[0]);
if(!isNaN(footNoteCounter))
footNoteCounter++;
}
Expand All @@ -76,6 +76,7 @@ function addFootNote(footNoteText){
//Add the foot note to the end of the page
var len = this.rep.lines.atIndex(lastLineNo).text.length;
if(len > 0){//means there is some text there.... so press enter and add the foot note
this.editorInfo.ace_performSelectionChange([lastLineNo,len], [lastLineNo,len]);
this.editorInfo.ace_doReturnKey();
//increment the last line index , since Enter key is pressed..
lastLineNo++;
Expand Down