Alat “Compare Versions” memiliki fitur “Save as HTML”. Fitur ini dapat diakses dengan mengklik ikon cetak, lalu tombol “Save as HTML”.
Yang membingungkan, HTML yang dihasilkan oleh fitur ini menggunakan atribut HTML contenteditable. Tag HTML <body> terlihat seperti ini:
<body spellcheck="false" data-gramm="false" contenteditable="true">
Ini berarti bahwa ketika Anda membuka file HTML di browser, Anda dapat mengklik teks dan mulai mengetik, dan teks akan diedit di browser. Namun, perubahan tersebut tidak disimpan. Jika Anda memuat ulang halaman, semua perubahan akan hilang.
Bisakah Paratext diperbaiki agar contenteditable tidak disertakan dalam HTML yang diekspor? Hal ini membuat file HTML lebih sulit ditangani. Misalnya, saya tidak dapat menemukan item menu “take a screenshot” di Firefox, karena item tersebut menghilang ketika teks bersifat 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.
Diterjemahkan secara otomatis dari English