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

 

You must be logged in to post in the forum