Skip to content

Commit

Permalink
hide mt and make it non-editable
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljd committed Dec 8, 2023
1 parent f00f81b commit 2144a45
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions renderer/src/components/EditorPage/TextEditor/hooks/htmlmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ const htmlMap = (context) => ({
'*': {
tagName: 'p',
},
'usfm:mt': {
classList: ['major-title paragraph mt hidden'],
tagName: 'h2',
attributes: { contenteditable: false },
},
'usfm:ms': {
classList: ['major-section-heading paragraph ms'],
tagName: 'h3',
attributes: { contenteditable: false },
},
},
mark: {
'*': {
Expand Down

0 comments on commit 2144a45

Please sign in to comment.