This is expected. Unfortunately “Load JavaScript Skin Extensions” doesn’t work well with the standalone WYSIWYG edit mode, see Loading... . You should keep this option unchecked (which is the default). Note that the in-place WYSIWYG edit mode is loading the required JavaScript skin extensions regardless of this option, so you can use that for existing plain wiki pages. For creating new pages and for structured pages (TextArea properties) you’re forced to use the standalone WYSIWYG editor though, so you need to leave with the fact that JavaScript is not loaded inside the editing area.
one more thing is that i can not see the attachments in pages. it shows the count of attachments but under the tab its empty. and when if i try to upload a document i get this error at the center bottom of the browser.
Activate Realtime:
These steps we need to follow. Reason I found we use AJP and websockets are required by realtime. so we need to enable the http connector in tomcat10 which send the trafic of websocket to apache2 and apache2 can handle websockets.
root@xwiki:~# nano /etc/apache2/sites-enabled/default-ssl.conf
# 1. Enable Rewrite Engine
RewriteEngine on
# 2. Detect WebSocket "Upgrade" header and redirect to Tomcat HTTP port
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/xwiki/websocket/(.*) ws://127.0.0.1:8080/xwiki/websocket/$1 [P,L]
# Route WebSocket traffic to the HTTP/WS port
ProxyPass "/xwiki/websocket/" "ws://127.0.0.1:8080/xwiki/websocket/"
ProxyPassReverse "/xwiki/websocket/" "ws://127.0.0.1:8080/xwiki/websocket/"
root@xwiki:~# nano /etc/tomcat10/server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
address="127.0.0.1" />
root@xwiki:~# nano /etc/xwiki/xwiki.properties
websocket.ssl.enable = true
root@xwiki:~# nano /etc/xwiki/xwiki.cfg
xwiki.url.protocol=https
root@xwiki:~# sudo a2enmod proxy_wstunnel
Considering dependency proxy for proxy_wstunnel:
Module proxy already enabled
Enabling module proxy_wstunnel.
To activate the new configuration, you need to run:
systemctl restart apache2
root@xwiki:~# systemctl restart apache2.service
root@xwiki:~# systemctl restart tomcat10.service