From 9dd2a01062ccd31e4e4657c3662270a218c9bd87 Mon Sep 17 00:00:00 2001 From: Samuel John <40059405+samueljd@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:09:44 +0530 Subject: [PATCH] hide mt and make it non-editable (#275) --- .../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: { '*': {