Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meteor 1.6.1.1 - searching for WYSIWYG

I am searching for an WYSIWYG editor for my Meteor project.

It's Meteor version 1.6.1.1 with Angular 5.

I have already tried [Froala][1].

Which was working fine local, but after creating a Docker container it showed multiple errors (https://github.com/froala/meteor-froala/issues/27).

So I am looking for either fixing this problem, or another simple/lightweight WYSIWYG editor working with Meteor 1.6.1.1 and Angular 5.

Thank you ;)

like image 890
xQp Avatar asked May 29 '18 06:05

xQp


1 Answers

I will suggest The CKEditor - https://ckeditor.com. I recommend version 4, since I worked with it and I can say that it works very well with Meteor. Put the code (CK Editor library) in the public folder of your project, after that you can simply use it everywhere. It has a download page (https://ckeditor.com/ckeditor-4/download) were you can built your editor, add everything that you need and remove the things that you don't need, so it's pretty nice to use it.

Initializing it is that simple:

HTML: <textarea id="ck_editor" rows="5">
JS:   CKEDITOR.replace('ck_editor');

To get the text content:

CKEDITOR.instances.ck_editor.getData()

P.S.: I worked with this editor in Meteor 1.5 and I haven't tested it with 1.6, but it should work in the same way. Also I deployed the project on a docker container, without any problems.

like image 130
TheCodeLord Avatar answered Nov 03 '22 12:11

TheCodeLord