Developer forum

Forum » CMS - Standard features » Richtext editor in DW10

Richtext editor in DW10

Niels Christian Aaes
Niels Christian Aaes
Reply

Hi,

I would like to change the richtext editor in one item I created.
I can find the scripts in assets under Editor.

But how to change to another script in settings?

Where do I find the Editor configurations in DW10?

Thanx in advance, NC

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

In DW10 you cannot change the RTE buttons.

When you setup item types, you can choose RTE or RTE Light that will limit what is available. We have discussed being able to configure each of these modes centrally.

Can you ellaborate on your specific needs?

 
Niels Christian Aaes
Niels Christian Aaes
Reply

Hi Nicolai,

in the current project I need a table setup.
And it's always god to have the source as an option.

But in any case, it would be nice to have the same options a la Editor configuration in DW9.

/NC

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Tables have just been added and will be out in the next release.

Source is not supported by Quill which is the editor in DW10. Tiny MCE changed their license terms and we cannot use it anymore.

 
Niels Christian Aaes
Niels Christian Aaes
Reply

A shame about source, but we'll be waiting for tables in next release.. =) thanx

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Well, maybe. But source also caused lots of issue. The new editor does not hold html - it holds a tree of DOM nodes and they have to follow the rules, so pasting or editing markup is not possible.

You can create an item type with a text area to paste/edit HTML and render that - or just used an edit a template from the file system if you want to paste HTML into the content area.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Have you considered Editor.js? It's a bit different than usual editors but can be extended with new blocks and supports copy/paste.

The data stored in the field is a JSON, which may lead to other issues but it seems very friendly.

Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Quill is doing the same, holding a json. We considered a number of different editors.

We were looking at adoption rates and simplicity trying to ensure we have something that will stay around for as long as possible.

https://npmtrends.com/@editorjs/editorjs-vs-@tiptap/core-vs-ckeditor-vs-draft-js-vs-medium-editor-vs-quill-vs-react-draft-wysiwyg-vs-slate​

Tip tap I believe is the best alternative to Quill currently: https://tiptap.dev/

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

It looks nice. It may be nicer than editor.js

Thank you,
Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

What about Prose Mirror? 

https://prosemirror.net/

It seems to be the base HTML editor on which to build.

Adrian

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Yes, there are many editors. They all do more or less the same.

What issues do we solve byusing prose that we do not currently solve using Quill?

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

I had the impression there were a few things unsupported by Quill.

Source, tables, anchors. I don't remember all of them, and maybe some of them have already been solved in the recent versions.
I just thought that this free base editor may be useful in case you consider moving away from Quill.

Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Quill has tables and anchors and it can get show source - we have chosen not to as mostly it used to make things ugly and destroy content of the editor because most editors do not write HTML. In DW10 we have a html editor in assets - maybe that would be better for editing html, instead of switch from RTE to Textarea as in DW9 - because Quill and other RTEs will try to understand what you paste and may not understand all that you put in the editor and remove things.

We can make addins to Quill all that we want - we made the link editor - and there are lots of downloadable addins out there so not many limits. 

 

 
Suzi Louring
Suzi Louring
Reply

Hi Nicolai

It would be nice, if you could remove the "add image" in the editor.
As you say, it makes things ugly (base64) :D
Thanks

/Suzi

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

I removed it already....

 
Jan Sangill
Reply

Hi Nicolai,

Images

Links on images does not seem very user friendly. 
When I want to apply a link its not enough to press the image I have to mark is somehow by holding down from one side to the other.
Also, external links on images. Not easy to know and edit the current link. I can see its possible by a few tries and errors on picking the image though.

Moreover, setting alt title or other tags on the image is simply not possible.

Tables
- It is not possible to add table header.
- I cant add classes to my table or cells.
- I cant add summary and caption.

Iframes and scripts
I assume we have to find different ways around this? Via a Textarea? Not something that will be possible in the future?

Links
We have no way of adding classes or titles to links. I hope this will be possible in the future?

Our client and accecibility is very important. And being able to add some off these things are incredible important to them. 

Let me know your thoughts.

 

 

You must be logged in to post in the forum