material icon indicating copy to clipboard operation
material copied to clipboard

Angular Material Rich Text Editor

Open mohsinmuzawar opened this issue 10 years ago • 24 comments

Wanted to ask whether there is going to be a rich text editor which will be added to angular material Some thing like summernote

mohsinmuzawar avatar May 18 '16 07:05 mohsinmuzawar

+1

stoperan avatar May 18 '16 09:05 stoperan

A pull request would be welcome. And we will contact the SummerNote author to see if he would be interested in making an Angular Material native version.

@topherfangio - FYI.

ThomasBurleson avatar May 18 '16 15:05 ThomasBurleson

There are several rich text editors available, all with their own benefits and disadvantages. No single editor will be the best for every problem. I think this is best left to the individual architect to chose the right editor for their situation.

timbrown81 avatar May 18 '16 18:05 timbrown81

There is an official angular directive for summernote already, maybe is a good option to start.

mbarakaja avatar May 18 '16 20:05 mbarakaja

I should also add that an Angular Material-native RichText Editor would be best added to an extension library (eg angular-material.extensions.js) and will not be published as a core component in (angular-material.js).

ThomasBurleson avatar May 19 '16 02:05 ThomasBurleson

ngWig would be a good fit for my project because it has no dependency on JQuery or twitter-bootstrap as Summernote does. Unfortunately it has compatibility issues with angular-material. While I agree with @timbrown81 that different editors will suit different projects, it would be good to have a choice of editors that actually work with angular-material. I have been finding that a challenge.

kpgarrod avatar May 31 '16 06:05 kpgarrod

@kpgarrod it's not compatibility issues of ngWig itself, but it looks like it's compatibility issue of angular-material with contenteditable fields on mobile devices.

would like to see answer on this https://github.com/angular/material/issues/8593

stevermeister avatar May 31 '16 08:05 stevermeister

I have been experimenting with several different rich text editors for my project on Angular Material. In doing so, I've taken made CodePens for 5 different WSYWSG editors. So far I am leaning towards Froala simply because it's native look and feel is implemented with Material Design. Disadvantage is that it requires JQuery. So I am also looking at CKEditor, it will take some skinning to follow MD, but has no dependencies and has a rich ecosystem of plugins.

Let me know if there are any other editors you'd like to have my include. Angular Material WYSWYG Editors

timbrown81 avatar May 31 '16 17:05 timbrown81

What about http://textangular.com?

stunaz avatar May 31 '16 17:05 stunaz

Certainly ngWig. Once the bug is fixed in a-m I think it will be ideal.

On Tue, 31 May 2016, 19:47 stunaz [email protected] wrote:

What about http://textangular.com?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/angular/material/issues/8487#issuecomment-222765370, or mute the thread https://github.com/notifications/unsubscribe/ACDjkY-MABRz7OkeovOb61RJnJJA6maiks5qHHQsgaJpZM4Ig_Gg .

kpgarrod avatar May 31 '16 18:05 kpgarrod

@timbrown81 it would be nice if you could add ngWig (http://ng-wig.js.org/) into your list as well

stevermeister avatar May 31 '16 20:05 stevermeister

On Tue, 31 May 2016, 19:47 stunaz _@_.***> wrote: What about http://textangular.com?

@stunaz Here is textAngular: http://codepen.io/timbrown81/pen/JKoGMr

timbrown81 avatar Jun 01 '16 15:06 timbrown81

@stevermeister @kpgarrod

Here is ngWig: http://codepen.io/timbrown81/pen/QEwQqd

timbrown81 avatar Jun 01 '16 16:06 timbrown81

And here is Medium using angular-medium-editor http://codepen.io/timbrown81/pen/xObYeB

timbrown81 avatar Jun 01 '16 16:06 timbrown81

@timbrown81 great thx! forward my blog audience to your list ;)

stevermeister avatar Jun 01 '16 18:06 stevermeister

@timbrown81 not sure to understand what your pens do. Is there any new material component (subject to be in a future angular-material.extensions) ?

Seems to me that you just included external lib, so nothing new.

stunaz avatar Jun 01 '16 23:06 stunaz

@timbrown81 Just to be clear, I understand that all of these editors suffer from the same angular-material bug (#5937) on mobile devices. Is that right? I checked medium-editor and confirm that it and ng-wig do.

kpgarrod avatar Jun 02 '16 05:06 kpgarrod

This issue is closed as part of our ‘Surge Focus on Material 2' efforts. For details, see our forum posting @ http://bit.ly/1UhZyWs.

ThomasBurleson avatar Jun 02 '16 06:06 ThomasBurleson

I'm surprised that Quill isn't mentioned here. It looks awesome and more in line with Angular Material philosophy than summernote.

Also, it doesn't have any external dependencies on Bootstrap or Jquery: http://quilljs.com/

victordelacruz avatar Sep 27 '16 18:09 victordelacruz

I used a combination of TinyMCE (for angular, nom jQuery) and sample editor in docs, it worked very well.

localhost-3000-auxs-appointmenttemplates iphone 6

jessicamrbr avatar Feb 08 '17 12:02 jessicamrbr