[xwiki-users] Problems with both WYSIWYG editors
Hi Everyone, I've been testing XWiki for a few days and there are several problems with both GWT and CKEditor editors. With the CKEditor: 1. In 95% of cases the tree view button in the "add link" dialog is not working. In the google developer console I see the following messages when opening the editor: tree.js:1 Uncaught SyntaxError: Unexpected token < hierarchy.js:1 Uncaught TypeError: b is not a function Seems like in Chrome that happens more often then in Firefox. Tried both production-like WAR installation and the versions from the "graphical installer for all platfroms" - both 8.2 and 8.3-M1. 2. Sometimes the editor just does not show up at all - the editor load progress indicator inside the page is rotating and nothing happens. Could not find and error messages. Seems that this does not depend on any particular page contents - sometimes it happens, sometimes not. Tried cleaning the browser cache, but that did not help. 3. The similar problem with the "source" button. Very often it just shows the empty page. If I click it about 5 times on/off then sometimes the contents finally appears, but sometimes I get the raw HTML contents of the whole current page inside the text box. After giving up with CKEditor I tried the GWT editor (although I believe that since the CKEditor became the default one, the GWT might soon became deprecated). But here I met another problem: if I format any cell in a table with either "forecolor" or "backcolor" the removeformat command does not remove these colors. It only works if I switch to the source and put a space between '|' and '(%'. I'm really frustrated, because the table color formating is one of the main reasons I started looking for a new wiki engine for our company and after spending almost two weeks on the evaluation of different products I came to the conclusion that XWiki is currently the best one around. So any help would be very appreciated. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-with-both-WYSIWYG-editors-tp76011... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Thu, Sep 8, 2016 at 6:49 PM, alx_0x41 <[email protected]> wrote:
Hi Everyone,
I've been testing XWiki for a few days and there are several problems with both GWT and CKEditor editors.
With the CKEditor: 1. In 95% of cases the tree view button in the "add link" dialog is not working. In the google developer console I see the following messages when opening the editor: tree.js:1 Uncaught SyntaxError: Unexpected token < hierarchy.js:1 Uncaught TypeError: b is not a function
You have a problem with the document tree which is not related to the CKEditor editor. The document tree is used in various places, like the breadcrumb, the navigation panel, etc. Don't you have the same errors in the JavaScript console when in view mode? Something prevents the tree from loading. Did you install any extensions? Did you write any JavaScript extensions? I've seen this problem once caused by an extension that was loading jQuery from CDN instead of using the version bundled with XWiki. I have a clean install of 8.3M1 and the tree view loads all the time on Chrome. If you want to help debugging then you can replace your minified version of hierarchy.js (from the XWiki WAR) with the unminified version https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-8.2.1/xwiki-plat... so that we get a better error message.
Seems like in Chrome that happens more often then in Firefox. Tried both production-like WAR installation and the versions from the "graphical installer for all platfroms" - both 8.2 and 8.3-M1.
2. Sometimes the editor just does not show up at all - the editor load progress indicator inside the page is rotating and nothing happens. Could not find and error messages. Seems that this does not depend on any particular page contents - sometimes it happens, sometimes not. Tried cleaning the browser cache, but that did not help.
3. The similar problem with the "source" button. Very often it just shows the empty page. If I click it about 5 times on/off then sometimes the contents finally appears, but sometimes I get the raw HTML contents of the whole current page inside the text box.
After giving up with CKEditor I tried the GWT editor (although I believe that since the CKEditor became the default one, the GWT might soon became deprecated).
But here I met another problem: if I format any cell in a table with either "forecolor" or "backcolor" the removeformat command does not remove these colors. It only works if I switch to the source and put a space between '|' and '(%'.
I'm really frustrated, because the table color formating is one of the main reasons I started looking for a new wiki engine for our company and after spending almost two weeks on the evaluation of different products I came to the conclusion that XWiki is currently the best one around.
So any help would be very appreciated.
-- View this message in context: http://xwiki.475771.n2.nabble. com/Problems-with-both-WYSIWYG-editors-tp7601122.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
> With the CKEditor: > 1. In 95% of cases the tree view button in the "add link" dialog is not > working. In the google developer console I see the following messages when > opening the editor: > tree.js:1 Uncaught SyntaxError: Unexpected token < > hierarchy.js:1 Uncaught TypeError: b is not a function > You have a problem with the document tree which is not related to the CKEditor editor. The document tree is used in various places, like the breadcrumb, the navigation panel, etc. Don't you have the same errors in the JavaScript console when in view mode? Something prevents the tree from loading. Did you install any extensions? Did you write any JavaScript extensions? I've seen this problem once caused by an extension that was loading jQuery from CDN instead of using the version bundled with XWiki. I have a clean install of 8.3M1 and the tree view loads all the time on Chrome. If you want to help debugging then you can replace your minified version of hierarchy.js (from the XWiki WAR) with the unminified version https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-8.2.1/xwiki-plat... so that we get a better error message. Initially I did the only modification - deleted the colorbutton plugin from the 'removePlugins' list on the EditSheet JSExtension. No other changes. And right now I have set up a fresh installation from the "graphical installer for all platfroms" of 8.2 and replaced the hierarchy.js with the one from branch 8.2.x on github. Here's what I get in the console: tree.js:1 Uncaught SyntaxError: Unexpected token < hierarchy.js:104 Uncaught TypeError: $ is not a function(anonymous function) @ hierarchy.js:104 execCb @ require.min.js?r=1:29 check @ require.min.js?r=1:18 (anonymous function) @ require.min.js?r=1:22 (anonymous function) @ require.min.js?r=1:7 (anonymous function) @ require.min.js?r=1:23 y @ require.min.js?r=1:6 emit @ require.min.js?r=1:23 check @ require.min.js?r=1:19 enable @ require.min.js?r=1:23 init @ require.min.js?r=1:16 I @ require.min.js?r=1:13 completeLoad @ require.min.js?r=1:28 onScriptLoad @ require.min.js?r=1:29 The only time I receive these errors is when opening the CKEditor. I do not get it in any other scenarios. > > Seems like in Chrome that happens more often then in Firefox. Tried both > production-like WAR installation and the versions from the "graphical > installer for all platfroms" - both 8.2 and 8.3-M1. > > 2. Sometimes the editor just does not show up at all - the editor load > progress indicator inside the page is rotating and nothing happens. Could > not find and error messages. Seems that this does not depend on any > particular page contents - sometimes it happens, sometimes not. Tried > cleaning the browser cache, but that did not help. > > 3. The similar problem with the "source" button. Very often it just shows > the empty page. If I click it about 5 times on/off then sometimes the > contents finally appears, but sometimes I get the raw HTML contents of the > whole current page inside the text box. > > After giving up with CKEditor I tried the GWT editor (although I believe > that since the CKEditor became the default one, the GWT might soon became > deprecated). > > But here I met another problem: if I format any cell in a table with either > "forecolor" or "backcolor" the removeformat command does not remove these > colors. It only works if I switch to the source and put a space between '|' > and '(%'. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-with-both-WYSIWYG-editors-tp76011... Sent from the XWiki- Users mailing list archive at Nabble.com.
Still haven't resolved this problem. Tried different versions of XWiki, different browsers, different linux editions, etc. And one more thing I've noticed in the browser developer tools: The error messages in the console include the link to the related .js file. like this one: tree.js:1 Uncaught SyntaxError: Unexpected token < And when I click the tree.js link it opens an xwiki HTML page source instead of the .js file! It starts with: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" data-xwiki-reference="xwiki:Sandbox.tree\.js" data-xwiki-document="Sandbox.tree\.js" data-xwiki-wiki="xwiki" data-xwiki-space="Sandbox" data-xwiki-page="tree.js" JavaScript is not among languages I'm familiar with, but I have a big suspicion that this is wrong. Maybe this would give someone a clue? -- View this message in context: http://xwiki.475771.n2.nabble.com/Problems-with-both-WYSIWYG-editors-tp76011... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Fri, Sep 23, 2016 at 2:41 PM, alx_0x41 <[email protected]> wrote:
Still haven't resolved this problem. Tried different versions of XWiki, different browsers, different linux editions, etc.
And one more thing I've noticed in the browser developer tools: The error messages in the console include the link to the related .js file. like this one: tree.js:1 Uncaught SyntaxError: Unexpected token <
And when I click the tree.js link it opens an xwiki HTML page source instead of the .js file!
It starts with: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" data-xwiki-reference="xwiki:Sandbox.tree\.js" data-xwiki-document="Sandbox.tree\.js" data-xwiki-wiki="xwiki" data-xwiki-space="Sandbox" data-xwiki-page="tree.js"
JavaScript is not among languages I'm familiar with, but I have a big suspicion that this is wrong.
Maybe this would give someone a clue?
This is not the cause but the effect. You get HTML instead of JavaScript because the URL used to load tree.js is wrong, and this is a consequence of the fact that /xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/8.2/require-config.min.js?evaluate=true , which configures the URL for the tree.js module, is not loaded correctly for some reason.
-- View this message in context: http://xwiki.475771.n2.nabble. com/Problems-with-both-WYSIWYG-editors-tp7601122p7601350.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
alx_0x41 -
Marius Dumitru Florea