Wiki editor not working in clean install 11.10.5 (Syntax Highlighting and/or Autocompletion failed to load.)

In clean install xwiki 11.10.5 (standalone or from docker-compose) wiki editor failed load toolbar with error: Syntax Highlighting and/or Autocompletion failed to load.

Step to reproduce:

  1. Run / setup xwiki using docker-compose up (
  2. Enable XHTML 1.0 syntax in settings (/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=Syntaxes)
  3. Create new page / change Page syntax to XHTML 1.0 / save.
  4. Try edit page - now you see error: “Syntax Highlighting and/or Autocompletion failed to load”.

In Chrome Development Mode i see what browser cannot load two files:
http://xx.xx.xx.xx:8080/webjars/wiki%3Axwiki/codemirror/5.24.2/mode/xhtml/1.0/xhtml/1.0.js (Error 404) (Error 400)

How i can fix this issue?

Yes it’s a known limitation. What it means is that if your content is in XHTML syntax, then the autocompletion feature doesn’t work. It works for xwiki syntax only ATM AFAIK.

It doesn’t break anything. It just means you don’t have syntax highlighting or auto completion when you’re in XHTML syntax.

1 Like

Thx for quick reply. But what about why this toolbar not loading:

It’s normal?

Yes it’s normal it’s a toolbar for wiki markup but there’s no wiki markup since you chose xhtml syntax.

1 Like