[Bug 40293] New: Additional content codemirror mode initializes as xml
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40293 Bug ID: 40293 Summary: Additional content codemirror mode initializes as xml Change sponsored?: --- Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: lisette@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org In additional contents with the wysiwyg preference set to text, the codemirror initalizes with mode xml. It lints properly but To recreate on main: 1. Set wysiwyg preference to text 2. Go To tools->news 3. Edit or create a news item 4. In your browser console, copy and paste the following in: document.querySelectorAll('.CodeMirror').forEach((cm, i) => { console.log(`Editor ${i}:`, cm.CodeMirror.getMode().name); }); It will return Editor 0: xml It lints html properly, but the mode is wrong. If you go to system preferences and find intranetuserjs and expand the box, then run the same command in your console, you'll get Editor 0: javascript -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40293 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |38706 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38706 [Bug 38706] Replace UserJS system preference with snippets -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org