-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
72 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
renderer/src/components/EditorPage/TextEditor/utils/insertFunctionMap.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { | ||
insertVerseNumber, insertChapterNumber, insertFootnote, insertXRef, | ||
} from '@/util/cursorUtils'; | ||
|
||
export const functionMapping = { | ||
insertVerseNumber: { | ||
title: 'Insert Verse', function: insertVerseNumber, icon: 'V', pholder: 'Verse number', | ||
}, | ||
insertChapterNumber: { | ||
title: 'Insert Chapter', function: insertChapterNumber, icon: 'C', placeholder: 'Chapter number', | ||
}, | ||
insertFootnote: { | ||
title: 'Insert Footnote', function: insertFootnote, icon: 'FN', placeholder: 'Footnote', | ||
}, | ||
insertXRef: { | ||
title: 'Insert Cross Reference', function: insertXRef, icon: 'XR', placeholder: 'Cross Reference', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters