「比較版本」工具有一個「另存為 HTML」功能。您可以透過點擊列印圖示,然後點擊「另存為 HTML」按鈕來存取此功能。
令人困惑的是,此功能產生的 HTML 使用了 contenteditable HTML 屬性。<body> HTML 標籤看起來像這樣:
<body spellcheck="false" data-gramm="false" contenteditable="true">
這意味著當您在瀏覽器中開啟 HTML 檔案時,您可以點擊文字並開始輸入,文字會在瀏覽器中被編輯。然而,這些變更並不會被儲存。如果您重新整理頁面,所有變更都會遺失。
Paratext 能否修復此問題,使導出的 HTML 不包含 contenteditable?這使得 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.
機器翻譯自 English