“Compare Versions”工具具有“Save as HTML”功能。您可以通过点击打印图标,然后点击“Save as HTML”按钮来访问该功能。
令人困惑的是,此功能生成的 HTML 使用了 contenteditable HTML 属性。<body> HTML 标签看起来像这样:
<body spellcheck="false" data-gramm="false" contenteditable="true">
这意味着,当您在浏览器中打开该 HTML 文件时,您可以点击文本并开始输入,文本将在浏览器中被编辑。然而,这些更改不会被保存。如果您刷新页面,所有更改都会丢失。
能否修复 Paratext,使导出的 HTML 中不包含 contenteditable?这使得处理 HTML 文件变得更加困难。例如,我在 Firefox 中找不到“take a screenshot”菜单项,因为当文本是 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.
机器翻译自 English