From 2144a45cc56c8c598aea1b0e2655275ec32a83a2 Mon Sep 17 00:00:00 2001 From: samueljd Date: Fri, 8 Dec 2023 14:10:21 +0530 Subject: [PATCH] hide mt and make it non-editable --- .../components/EditorPage/TextEditor/hooks/htmlmap.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/renderer/src/components/EditorPage/TextEditor/hooks/htmlmap.js b/renderer/src/components/EditorPage/TextEditor/hooks/htmlmap.js index e9b9d9729..7f712c9f2 100644 --- a/renderer/src/components/EditorPage/TextEditor/hooks/htmlmap.js +++ b/renderer/src/components/EditorPage/TextEditor/hooks/htmlmap.js @@ -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: { '*': {