Hello everyone,
I have spent too much time with new Drupal 10 CKEditor and trying to get hyperlink working as in CKEditor in Drupal 9. Tried change settings such as ‘Manually editable HTML tags’ (cannot be seen again after save), tried filters etc.
Tis link for CKEditor 5 https://www.drupal.org/project/ckeditor5 shows how easily and nicely hyperlinks with the text are working, however, I am not able to get satisfactory results as presented
If I use hyperlinks in the text, the remaining text is broken into columns ad result is not usable at all.
I made screenshots of Pictures are here: https://drive.google.com/drive/folders/1Q6F3_Th_8WM4vlx0Xzf-F3tCr25tHmqw...
Text written in Drupal using full html formatting (any html format show the same result)
There is result visible in chrome – broken text
There is result in Drupal 9 text formatted as expected.
As all so called advices from CKE and from this forum has not helped. My question is if old CKEditor from Drupal 9 can be used in Drupal 10 or wat other rich text editors can be used with D10.
Thank you
Comments
Getting support for Drupal
You've asked the same question before, but were not happy with the answers and ended up with saying:
I believe people are trying to help you. At least I have not seen anything indicating that anyone "make fun of those asking" (in your other topic, or anywhere else). People who answer questions are unpaid volunteers who do as well as they can. I know it can be very frustrating when something doesn't work as you'd hoped, but please don't take this out on the person that tried to help, even if that person didn't manage to give an answer you found useful.
PS: If you want a rich text editor to use with Drupal 10, CKEditor 5 is the only long term option. For the record: CKEditor 4 can still be installed on Drupal 10, but will become unsupported by the end of 2023. I do not recommend installing it now, because it will only be a very short term solution.
I am unable to tell you what to do to make CKEditor 5 behave exactly like CKEditor 4. If I want to create a complex layout (such as a text overlay for an image), I don't use an editor for rich text. Instead I use a plain text editor to write pure HTML without any text format, and use CSS for the overlay and other fancy effects.
- gisle
Hello Gisle,
Hello Gisle,
thank youfor your reply. I understand people are voluteers and also understand CKEeditor 5 is to be the longterm solution.
I was trying to investigat on my own but none of the setting in CKEditor 5 allowed me to use hyperlinks in the text. It was the reason why I asked for help this forum.
It seems nobody experienced the same issues as me. Are there some differences between CKEditor and CKEditor 5?
If i use CKEditor in Drupal nine hyperlinks in the text, using full httml works fine, displayed web show nest text just with words where hyperlinks were added.
If I want to apply the same in Drupal 10 and CKEditor 5, full html (all other formats behave the same way) ordinary text is broken in columsn around the text where hyperlinks are inserted.
here are some screenshots:
https://drive.google.com/drive/folders/1Q6F3_Th_8WM4vlx0Xzf-F3tCr25tHmqw...
As a theme I use bootstram 3 and issue with hyperlinks appears in all content types. removing custome theme css aplying to paragraphs do not change anything.
Wanted to ask is there is other rich text editor for D10 available.
Thanks Libor
"CKEditor" is the brand. "4" and "5" are different versions.
Yes, that seems to be the case. I use CKEditor 5 on more then 10 Drupal 10 websites, and I haven't experienced that using hyperlinks in inline text produces broken text of any kind. I understand that you're experiencing some frustrating problems with CKEditor 5, but I am not able to reproduce those problems on any of my own Drupal 10 websites.
"CKEditor" is a brand for a software product that provides a JavaScript powered rich text editor. "CKEditor 5" is a version of that software product. The previous version of it was named "CKEditor 4" (and this was the version that shipped with Drupal 9).
FWIIW: I don't think a rich text editor is the right tool for creating complex page layouts, even if CKEditor 4 just happened to work for you. Rich text editors inject HTML markup and classes that you're unable to control.
However, if you really want to explore this area, there are Gutenberg, CKEditor 4 and TinyMCE (not yet available for Drupal 10).
- gisle
Thank you,
Thank you,
I have tried to instal CKEdito back to Drupal 10 and luckily it works as it should. Even though this editor is depreciaced I will continue using it.
Nevertheless, is there any idea why hyperlinks in CKEditor 5 break the rest of the text into columns? Even though I removed paragraph tags via the source in full html CKEditor 5, paragraphs are reverted for some reason and the text that is not hyperlink is broken.
Thank you for comment.
No idea
No. This does not happen on any of the websites where I use CKEditor 5 with Drupal 10 – and I use a lot of hyperlinks. I use it straight out the box with all the default settings. For me, it is just plug and play.
Of course, I believe you when you say that this happens on your website, but it is impossible to understand why it happens without having access to debugging the website itself. Your description of the problem and the screen shots do not provide enough information for me to be able to debug it.
- gisle
OK, just installed clean D10
OK, just installed clean D10 10.1.2 on localhost and trying random text with hyperlinks.
For some reason it is working fine. Thank you and sorry for bothering you. Will try to reinstall theme and will see if it changes.
I have tested with default theme Olivero 10.1.2,
Now installed Bootstrap 3 luckily works fine, need to dig in what cases issues i have described.
Libor