Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on October 24, 2019, 12:29:23

Title: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on October 24, 2019, 12:29:23
Hi, I am having several issues with the new WYSIWYG editor. If I paste text from Word doc. or an email it adds lots of weird code even I choose the 'clean' option. 'Paste from Word' option in old editor worked much better. Why are there <span> tags added within all <p> tags for example? Styling gets added seperately making a mess of the code. More seriously, in other languages, the cursor does not blink in the right location. If I try to edit the code of other languages, and place the cursor somewhere, it deletes the wrong characters, several spaces away. This happens in several other languages - it doesn't seem to matter which language - just that it is not the primary language. And the automatic adding of closing tags is an absolute nuisance. It prevents me from being able to edit code easily. I am currently copying and pasting all code into a text editor to edit and then pasting back because this editor is basically unusable because of all these issues.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: datahell on October 24, 2019, 19:25:11
Never copy-paste text from the word. MS word is not web optimized editor. If you want to copy-paste text from the word then copy it from word, paste it in a text editor (notepad, pspad, etc) and then copy it from the text editor and paste it in Elxis editor. This will clean your code and you will not have any problem at all.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on October 25, 2019, 17:14:15
Yes, that is what I'm doing - I am using Dreamweaver to edit all code but then what is the point of even having a code editor within the CMS. It's unusable for the other reasons outlined, even for quick edits, it's a nuisance to have the automatically created closing tags.

Say I switch to source view in the CMS editor and have this line: (I'm just adding pre tags as I don't know how this post will render).

<pre><p>This is one complete sentence.<p></pre>

and I want to change to this:

<pre><p>This is one complete <strong>sentence</strong>.</p></pre>

When I type <strong> in the editor then </strong> appears immediately after it but I don't want it there. I am continuously having to delete the closing tag and then retype it where it actually should go. This feature of automatically creating closing tags is only useful if you are starting from scratch and never need to edit it ever again in the future. I suggest that this situation is rare.

And there is the more serious issue of the cursor not appearing in the correct place in secondary languages - at least I think it's secondary languages only but I may be wrong. So I switch to code view - and place the cursor somewhere and hit backspace but a different character deletes than where the cursor is - usually about six or seven characters away. It is definitely a bug because this occurs on three different installations for me and in different languages.

Thanks for your consideration of this feedback!
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: bully on October 29, 2019, 09:37:30
You still can pre-write all your content as pure html and then paste it, without the GUI web editor. I use that very frequently
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on October 29, 2019, 12:50:15
As I stated above - that is what I am doing. But then what is the point of even having a code editor in the CMS? The solution to the code editor being unusable is to not use it? That's not much of a solution.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on November 28, 2019, 14:45:59
datahell,
can you provide any more insight into why the WYSIWYG editor has changed and if it's possible to use the old editor with the 5.0 version of Elxis?
The previous WYSIWYG editor had a wonderful function allowing us to "Paste from MS Word" whereby all the trash styling was stripped and we were left with clean HTML. This new editor adds a lot of trash styling to the content when sometimes all we want to do is retain hyperlinks as added in MS Word. I think this is a great tragedy that the editor has disimproved in a supposed "upgrade" of the CMS.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: michalis1984 on November 28, 2019, 19:55:04
I agree about the new editor :/ althought datahell explain to other post the reason behind the change of the editor, the new editor adds much trash tags at the text. The only solution is to type text straight at the editor, but isnt the best solution. On elxis 4 was possible to paste normal text from notepad or even plain text from ms word and the <p> was added. Now it adds other tages and need manual editing which isnt the best solution for people who dont understand html.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: datahell on November 28, 2019, 23:18:13
Do not copy-paste text from the word, it is a very bad practice. Jodit is perfect. I am sorry but I don't see and problem with the editor and I dont see trash in html as you say. CKEditor (5) is richer for sure but much heavier and there are issues with the integration with Elxis, the filemanager, the plugins, the Elxis URI links, etc, etc. I am not talking about CKEditor 4 but for 5. You cannot use other editor than Jodit in Elxis 5. The integration of an editor in the CMS is a very complex thing.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on November 29, 2019, 10:00:46
Well I've done my best to outline the significant issues with this editor. It appears you just don't want to listen. Many times you respond as if I'm just making things up. For some kind of fun. I am trying to help make this CMS better. I've been using Elxis since it was first developed, having been a Mambo user before then. But I'm sorry - the issues with this editor make this CMS unfit for purpose for me. I will need to consider switching to the new version of Joomla when it's stable.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: webgift on November 29, 2019, 10:36:03

@seadhna, don't have to take it in personal.  Datahell reported the facts
and mentioned that "The integration of an editor in the CMS is a very
complex thing.". So you can not implement the old editor in this version. 

Choosing an editor its a complex process as we have to take under
consideration a number of pros and cons. You can use Elxis 4.6 instead. 
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on November 29, 2019, 12:12:55
webgift, I am not taking it personally. However, this response from @datahell: "Jodit is perfect." completely disregards the significant issues (and bugs) with the new editor. There is a serious issue in secondary languages with the cursor not appearing in the correct place. I have flagged this but the response is "Jodit is perfect.". Yes, it's as perfect as Trump's phone call to Ukraine. No thank you on v4.6. I prefer to move with the times, not live in the past. Tell me why, except for some emotional nostalgia, I would continue to use v4.6 in the future instead of using a modern CMS that functions better and listens to its users.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on November 29, 2019, 12:15:46
And this statement: "Do not copy-paste text from the word, it is a very bad practice." So what do we tell clients to do? Learn HTML? Get back to Reality Elxis!
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: bully on November 29, 2019, 12:19:50
And this statement: "Do not copy-paste text from the word, it is a very bad practice." So what do we tell clients to do? Learn HTML? Get back to Reality Elxis!
There is still the option of a notepad or textpad or a gedi ..... This alone would not worry me
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on November 29, 2019, 12:21:43
You cannot retain hyperlinks by copying from Word and pasting to Notepad.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: seadhna on November 29, 2019, 12:23:31
Look at this screenshot. I have just pasted the white text on the last line. But look where the cursor is flashing. And if I hit the backspace, the wrong character is deleted.
This also happens in German language and Spanish language.
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: bully on November 29, 2019, 12:27:55
looks a bit strange,
have a look at brackets - maybe it will do the trick needed
https://github.com/adobe/brackets/releases
Title: Re: Possible to keep old WYSIWYG editor in Elxis 5.0?
Post by: datahell on November 29, 2019, 22:17:26
The most important reason why jodit was selected is the presence of an open source file manager in the editor which could be integrated with third party systems (Elxis in our case). CKEditor 5 has CKFinder (https://ckeditor.com/ckfinder/) which is commercial and so it cannot be included into Elxis. So forget CKEditor. I search a lot, believe me. I searched again and again many many times and tested many editors. The only editor that could provide all the functionality we had in Elxis 4.x, was modern (not abandoned by its developers), and was open source was Jodit. I don't know if now there is someone else but by the time we developed Elxis 5.x Jodit was the best option. Also believe me once more: integrating the editor in the CMS is one of the hardest things. The editor is not easy to be changed. Except from the file manager Elxis plugins are also bind to the editor. I have developed 2 Jodit plugins for Elxis for these purposes. Elxis multilingualism is also bind to the editor. The editor is under the supervision of the Elxis Access Control Lists system and it is strengthen for security purposes. You cannot just replace the editor with someone else, it is not that simple.

Also I personally don't have the problems you have with the editor. For me the cursor is at the right position and I have no trash in HTML. OK, I mostly type in HTML, this is true, but I haven't noticed a problem. Maybe it is a language specific problem, maybe there is an improved version that fixes yours problems. I will check it. But the editor cannot change even if I want to.

Note: You don't make as a favor using Elxis. We work hard endless hours for its development without getting paid or getting anything else back. You use it if you like it and if it fits your needs. As I have said in the past, Elxis will continue been developed even if it has 0 downloads from elxis.org because it is used in many important private, or semi-private, projects and many companies have built their businesses on it. Elxis stability and security is our first priority.