L’outil « Comparer les versions » dispose d’une fonction « Enregistrer au format HTML ». Elle est accessible en cliquant sur l’icône d’impression, puis sur le bouton « Enregistrer au format HTML ».
De manière confuse, le HTML généré par cette fonction utilise l’attribut HTML contenteditable. La balise HTML <body> ressemble à ceci :
<body spellcheck="false" data-gramm="false" contenteditable="true">
Cela signifie que lorsque vous ouvrez le fichier HTML dans un navigateur, vous pouvez cliquer sur le texte et commencer à taper, et le texte sera modifié dans le navigateur. Cependant, les modifications ne sont pas enregistrées. Si vous actualisez la page, toutes les modifications sont perdues.
Paratext pourrait-il être corrigé pour que contenteditable ne soit pas inclus dans le HTML exporté ? Cela rend le fichier HTML plus difficile à manipuler. Par exemple, je ne trouve pas l’élément de menu « prendre une capture d’écran » dans Firefox, car il disparaît lorsque le texte est 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.
Traduit automatiquement depuis English