You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content of book lost, when switching to new WYSIWYG editor #5378
I encountered a bug with a particular book.
When I switch from the old WYSIWYG editor to the new WYSIWYG editor, then the complete content is gone, and a blank page is presented. Fortunately, the content is not lost. I can click on "Delete draft", go back and then the content is available again.
This issue ocourred only in one particular book so far.
Here is the error, which is visible in devtools -> console:
Confirm the Dialogue box with button Continue
"Are you sure you want to change the editor for this page?
Consider the following when changing editors:"
Confirm Browser Message "Leave website?"
End -> Blank page visible and error message in "Devtools -> Console" is visible
Expected Behaviour
The content should not be lost when switching to the new editor.
Thanks @miracuruzrh,
If you're also able to share the source of the page content (via old WYSIWYG editor, source button towards the top-right of the editor toolbar) that would also be very helpful for replicating the exact cause here.
This is the source for the page in question. Hopefully, it helps.
Please let me know, If I can assist with further details.
<h2id="bkmrk-git-befehle">Git Befehle</h2><tableid="bkmrk-aktion-befehl-bemerk"><thead><tr><th>Aktion</th><th>Befehl</th><th>Bemerkung</th></tr></thead><tbody><tr><td>List Remote</td><td>`git branch`</td><td>-</td></tr><tr><td>List Remote Branch</td><td>`git branch -r`</td><td>-</td></tr><tr><td>Branches auflisten</td><td>`git branch -v -a`</td><td>Verbose und All</td></tr><tr><td>Neuen Branch anlegen</td><td>`git checkout -b `</td><td>-</td></tr><tr><td>Branch wechseln</td><td>`git checkout main`</td><td>Wenn es den Branch bereits lokal gibt</td></tr><tr><td>Branch wechseln</td><td>`git checkout -t origin/main`</td><td>Wenn es den Branch lokal noch nicht gibt</td></tr><tr><td>Branch wechseln</td><td>`git switch main`</td><td>-</td></tr><tr><td>Alle Updates holen</td><td>`git fetch --all`</td><td>-</td></tr><tr><td>Branch aktualisieren</td><td>`git pull`</td><td>-</td></tr><tr><td>Branch aktualisieren</td><td>`git pull --all`</td><td>-</td></tr><tr><td>Lokalen Branch löschen</td><td>`git branch --delete old-branch`</td><td>-</td></tr><tr><td>Bereinigt lokal das Repo</td><td>`git fetch --prune origin`</td><td>-</td></tr></tbody></table><h2id="bkmrk-%C2%A0"></h2><h2id="bkmrk-git-konfigurieren">Git konfigurieren</h2><h5id="bkmrk-globale-einstellunge">Globale Einstellungen anpassen</h5><preid="bkmrk-git-config---global-"><codeclass="language-bash">git config --global --edit</code></pre><preid="bkmrk-%23-das-ist-gits-benut"><codeclass="language-ini"># Das ist Gits benutzerspezifische Konfigurationsdatei.
[user]
name = Simon Boonstra
email = redacted@redacted.ch
[push]
autoSetupRemote = true
[branch]
autosetuprebase = always
[color]
ui = true
status = auto
branch = auto
[core]
editor = nano
[credential]
helper = store</code></pre><h5id="bkmrk-ssh-key-f%C3%BCr-gitlab-e">SSH Key für Gitlab einrichten</h5><ulid="bkmrk-auf-der-gitlab-homep"><liclass="null">Auf der Gitlab homepage
<ul><liclass="null"><ahref="https://gitlab.com/-/profile/keys">Gitlab</a> öffnen und Neuen SSH Key anlegen klicken.</li><li>1Password öffnen und ein neues SSH-Keypair anlegen.</li><li>Public Key von 1Password kopieren und auf der Gitlab Seite im Feld "Key" einfügen.</li></ul></li><li>Lokaler Rechner: 1Passord öffnen und den Private Key exportieren.
<ulid="bkmrk-speicherort%C2%A0-windows"><li>Private Key einfügen
<ulid="bkmrk-windows%3A-c%3A%5C%25userpro"><li>Windows: <code>c:\%userprofile%\.ssh</code></li><li>Auf der Ansible Maschine: <code>cat ~/.ssh/id_ed25519_Gitlab</code></li><li>Linux: <code>nano ~/.ssh/id_ed25519_Gitlab</code><br></li></ul></li><li>Dateirechte anpassen
<ulid="bkmrk-chmod-600-%7E%2F.ssh%2Fid_"><li><code>chmod 600 ~/.ssh/id_ed25519_Gitlab</code></li></ul></li></ul></li><li>Eintrag für die Git Konfiguration erstellen in
<ulid="bkmrk-window%3A-c%3A%5C%25userprof"><li>Windows: <code>c:\%userprofile%\.ssh\config</code></li><li>Linux: <code>nano ~/.ssh/config</code><ulid="bkmrk-%23-gitlab.com-host-gi"><li><pre><codeclass="language-ini"># GitLab.com
Host gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519_Gitlab</code></pre></li></ul></li></ul></li><li>SSH Key testen
<ulid="bkmrk-ssh--t-git%40gitlab.co"><li><code>ssh -T git@gitlab.com</code></li></ul></li></ul><h5id="bkmrk-ssh-key-testen">SSH Key testen</h5><pid="bkmrk-verbindung-testen-mi">Verbindung testen mit Befehl:<br><code>ssh -T <ahref="mailto:git@gitlab.com">git@gitlab.com</a></code>.</p><pid="bkmrk-bei-erfolg-erscheint" class="callout success">Bei Erfolg erscheint die Meldung: Welcome to GitLab, @MiracuruZRH!</p><preid="bkmrk-%E2%95%AD%E2%94%80simon-at-klipper-i"><codeclass="language-bash">╭─simon at Klipper in ~/.ssh
╰─○ ssh -T git@gitlab.com
Welcome to GitLab, @MiracuruZRH!</code></pre><h3id="bkmrk-datei-in-einem-alten"></h3><h2id="bkmrk-branch-erstellen-und">Branch erstellen und wechseln</h2><pid="bkmrk-neuer-branch-mit-2in">Neuer Branch mit <em>2in1</em> Befehl<br></p><preclass="highlight" id="bkmrk-git-checkout--b-iss5"><codeclass="language-bash">git checkout -b iss53
# Switched to a new branch "iss53"</code></pre><pid="bkmrk-neuer-branch-mit-zwe">Neuer Branch mit zwei einzelnen Befehlen</p><preclass="highlight" id="bkmrk-git-branch-iss53-git"><codeclass="language-bash">git branch iss53
git checkout iss53</code></pre><h2id="bkmrk-weitere-befehle">Weitere Befehle</h2><pid="bkmrk-start-by-fetching-th">Start by fetching the latest remote changes</p><preid="bkmrk-git-fetch-origin"><codeclass="language-bash">git fetch origin</code></pre><pid="bkmrk-fetch-all-of-the-ava">Fetch all of the available remote branches</p><preid="bkmrk-git-branch--v--a"><codeclass="language-bash">git branch -v -a</code></pre><pid="bkmrk-branch-wechseln--c-e">Branch wechseln <code>-c</code> erstellt einen neuen lokalen Branch</p><preid="bkmrk-git-switch--c-test-o"><codeclass="language-bash">git switch -c test origin/test</code></pre><pid="bkmrk-for-more-information">For more information about using git switch:</p><preid="bkmrk-%24-man-git-switch"><codeclass="language-bash">$ man git-switch</code></pre><pid="bkmrk-prune-kann-auch-perm">Prune kann auch permanent aktiviert werden. Wird dann mit jedem Fetch ausgeführt</p><preid="bkmrk-git-config---global--1"><codeclass="language-bash">git config --global fetch.prune true</code></pre><h3id="bkmrk-hard-reset">Hard reset</h3><preid="bkmrk-git-reset---hard"><codeclass="language-bash">git reset --hard</code></pre><pid="bkmrk-"></p><h3id="bkmrk-datei-in-einem-alten-1">Datei in einem alten Commit ändern</h3><pid="bkmrk-https%3A%2F%2Fwww.youtube."><ahref="https://www.youtube.com/watch?v=zb5TXz2dHbU">https://www.youtube.com/watch?v=zb5TXz2dHbU</a></p><pid="bkmrk-interaktiv-modusnur-">Interaktiv Modus<br>Nur bei einem Branch anwenden. Nicht an zwei.</p>
Activity
ssddanbrown commentedon Dec 31, 2024
Thanks @miracuruzrh,
If you're also able to share the source of the page content (via old WYSIWYG editor, source button towards the top-right of the editor toolbar) that would also be very helpful for replicating the exact cause here.
miracuruzrh commentedon Jan 7, 2025
Dear @ssddanbrown
This is the source for the page in question. Hopefully, it helps.
Please let me know, If I can assist with further details.
ssddanbrown commentedon Jan 15, 2025
Thanks @miracuruzrh, that helps a lot.
I've now added this to the megathread for new editor bugs (#5245), therefore I'll close this off.
Reduced replication case
YamiGhor commentedon Feb 18, 2025
Also got a similar bug, can't tell if its the same:

What I've seen it's the image caused som infinite code and if I remove it the page becomes functional again.