D
D
dev1232019-06-27 11:26:50
WYSIWYG
dev123, 2019-06-27 11:26:50

Which WYSIWYG editor to choose for a website?

Please advise a WYSIWYG editor that can be customized. Add a drop-down list to the format bar. When you click on an element of the list - this element should be inserted into the editor.
Site on yii2. I looked in the direction of Imperavi Redactor - they have some kind of confusing API ...
CKEditor - they have 2 versions - build and framework. Here the framework is just needed for customization, as far as I understand. But it fails to install.
The docs say:
First, install packages needed to build CKEditor 5:

npm install --save \
    postcss-loader \
    raw-loader \
    style-loader \
    [email protected] \
    [email protected]

I understand these commands must be executed in turn? I.e.:
npm install --save \
npm postcss-loader \etc.
gave errors:
D:\OSPanel\domains\test\ckeditor\test2>npm install --save \
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\..\..\.." as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Admin-PC\AppData\Roaming\npm-cache\_logs\2019-06-27T08_20_33_312Z-debug.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i_m_newbie, 2019-08-12
@i_m_newbie

CKEditor does have two versions: 4 (editor) and 5 (framework). These are, in general, two fundamentally different products, it is not entirely correct to compare them, which is why they are both available (and developing) on ​​their website in parallel. CKEditor 5 will suit you if you want to program (and not just install) something custom-custom, if for some tasks you need to get under the hood and redefine the logic of work. If you don't need all this (or need it, but to a lesser extent), then CKEditor 4 is a ready-to-use editor that can be enhanced with plugins. For example, N1ED, which adds a bunch of different things and widgets, integrating like a seemingly simple plugin. That is, the possibility of customization is still not bad there, but the main plus is that you quickly combine a suitable solution from ready-made blocks (in CKEditor 5 you will often have to cut them yourself), and only then, if you want something like that, add your code (plugin) via the beautifully documented CKEditor 4 API .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question