Wysiwyg editor for angular4 [closed]

五迷三道 提交于 2019-12-02 16:05:08

Since I had the same problem, I'm sharing the results of my research here:

ng2-ckeditor

demo here

ngx-editor

demo here

EDIT 2019/01/12 - THIS PROJECT IS NOT ACTIVELY MAINTAINED ANYMORE

quill.js for angular

demo here

Note: Quill uses JSON to store the data internally, not html.

PRIME NG

Theme collection, that features a Quill-based WYSIWYG-editor as well, demo here. Some of themes are free.

ngx-md

A WYSIWYG editor which uses MarkDown rather than HTML, demo here

Edit

If your choice was quill.js, you might want to use KillerCodeMonkey's implementation since it is compatible with angular 5.

Try this simple but powerful WYSIWYG editor for Andular 6+ (native)

AngularEditor

Note: This native Angular 6+ WYSIWYG editor was created as library with Angular CLI v6.0.5.

Demo is here

PR or new features request are welcome.

This editor originally created as part of my corporate project https://kassar.ru/, but I extracted it into separate library and post as open source project. I hope this helps someone solve their problems.

Thanks @Ronin for sharing your research. Here is my feedback on a couple I tested.

NGX-EDITOR

First I tried ngx-editor and was relatively easy to install and use. Only needed ngs-boostrap and fontAwesome as dependencies. Hoever the only drawback I found for my requirements was the adding link widget. This library does not remember the link that you have entered so if you want to change them you need to remove and re-add it. Another limitation was that one could not specify a max Length value.

NGX-QUILL

I ended up using ngx-quill. It has a better way to deal with links as well as the ability to specify max-Length. It was also very easy to install:

npm install ngx-quill
npm install quill  // Needed for CSS styles

import { QuillModule } from 'ngx-quill'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'

@NgModule({
  imports: [
    ...,

    QuillModule
  ],
  ...
})
class YourModule { ... }

You can use ng2-editor. It has many options to manage .

https://github.com/chymz/ng2-ckeditor

I use "ngx-quill" as a WYSIWYG Editor in my Angular4 project.

This is an Angular (>=2) component for rich text editor Quill

angular v4 - ngx-quill <=1.6.0
angular v5 - ngx-quill > 1.6.0
angular v6 - ngx-quill >= 3.0.0
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!