Инструмент «Сравнение версий» имеет функцию «Сохранить как HTML». К ней можно получить доступ, нажав на значок печати, а затем на кнопку «Сохранить как HTML».
Запутанно то, что HTML, создаваемый этой функцией, использует атрибут HTML contenteditable. HTML-тег <body> выглядит так:
<body spellcheck="false" data-gramm="false" contenteditable="true">
Это означает, что при открытии HTML-файла в браузере можно щелкнуть по тексту и начать вводить, и текст будет редактироваться в браузере. Однако изменения не сохраняются. Если обновить страницу, все изменения будут потеряны.
Можно ли исправить Paratext так, чтобы contenteditable не включался в экспортируемый HTML? Это усложняет работу с HTML-файлом. Например, я не могу найти пункт меню «сделать снимок экрана» в Firefox, потому что он исчезает, когда текст имеет атрибут contenteditable.
The “Compare Versions” tool has a “Save as HTML” feature. It can be accessed by clicking on the print icon, and then the “Save as HTML” button.
Confusingly, the HTML produced by this feature uses the contenteditable HTML attribute. The <body> HTML tag looks like this:
<body spellcheck="false" data-gramm="false" contenteditable="true">
This means that when you open the HTML file in a browser, you can click on the text and start typing, and the text will be edited in the browser. The changes are not saved however. If you refresh the page, all the changes are lost.
Could Paratext be fixed so that contenteditable is not included in the exported HTML? It makes the HTML file harder to deal with. For example, I can’t find the “take a screenshot” menu item in Firefox, because it disappears when the text is contenteditable.