To recreate: -Go to Tools and open either additional contents ( either News or HTML customization ) -Make sure you open it using CodeMirror and not TinyMCE -Code mirror is broken
Created attachment 128513 [details] [review] Bug 29693: Make CodeMirror work again To test: 1. Go to Tools > HTML customizations 2. Open or create a new entry with CodeMirror. ( Edit with text editor ) 3. CodeMirror doesn't work, you don't see line numbers or syntax highlighting 4. Apply patch 5. Try steps 1 & 2 again. The CodeMirror editor should now load. 6. Make sure it works in both the Default and English(en) tabs. 7. BONUS: install some other language packs and look at the tabs for that language, it should still work. 8. Try 5 and 6 again but with Additional contents (News) instead of HTML customizations
Initial step is: turn on UseWYSIWYGinSystemPreferences :)
(In reply to Jonathan Druart from comment #2) > Initial step is: turn on UseWYSIWYGinSystemPreferences :) Nope, it's AdditionalContentsEditor=text!
(In reply to Jonathan Druart from comment #3) > (In reply to Jonathan Druart from comment #2) > > Initial step is: turn on UseWYSIWYGinSystemPreferences :) > > Nope, it's AdditionalContentsEditor=text! Well, it's second step. I totally forgot about that group button. The syspref does not make sense then. Sorry for the noise!
Created attachment 128540 [details] [review] Bug 29693: Make CodeMirror work again To test: 1. Go to Tools > HTML customizations 2. Open or create a new entry with CodeMirror. ( Edit with text editor ) 3. CodeMirror doesn't work, you don't see line numbers or syntax highlighting 4. Apply patch 5. Try steps 1 & 2 again. The CodeMirror editor should now load. 6. Make sure it works in both the Default and English(en) tabs. 7. BONUS: install some other language packs and look at the tabs for that language, it should still work. 8. Try 5 and 6 again but with Additional contents (News) instead of HTML customizations Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Trivial fix, skipping QA.
Pushed to master for 22.05, thanks to everybody involved [U+1F984]
Pushed to 21.11.x for 21.11.02
Missing dependency, not backported to 21.05.x