fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Rich Text support

Open dharnen opened this issue 6 years ago • 11 comments

Describe the feature that you would like added

Support rich text in some compacity. Bold, italic, underline, bullets, colors... Ultimately it would be amazing if a mention type capability could be configured as well. I know there are other packages out there, like "quill" that offer this but it seems weird that it rich text wouldn't be a default part of the built in components.

What component or utility would this be added to

TextField

Have you discussed this feature with our team, and if so, who

First time bringing it up.

Additional context/screenshots

dharnen avatar Sep 23 '20 20:09 dharnen

Some pretty nice functionality in the following https://www.slatejs.org https://github.com/udecode/slate-plugins

cameronbraid avatar Sep 24 '20 16:09 cameronbraid

@dharnen @cameronbraid Thanks for the feature request.

I’ll mark this as a feature request and add it to our backlog, but to set expectations - we’re likely not going to get to it for a while as we’re currently focused on larger coherence work items. We'll take this into consideration when we converge the TextField component across our two React packages.

@JustSlone FYI

Also this might be a good example of a community led component as I imagine the Rich Text domain can be fairly complex when you start to layer on things like spell checking, dictionary look up, markdown support, etc. 😊 So this might not be something that the core Fluent UI libraries provide.

paulgildea avatar Sep 24 '20 17:09 paulgildea

@JustSlone @paulgildea If no one is working on this issue, can you assign it to me for me to give it a try. I want to start contributing to FluentUI.

I looked at what Microsoft has in this regard and landed on RoosterJS. DraftJS from Facebook also is quite popular. Do you have a preference for reusing the Microsoft one or I can do some research myself? Is there a process within the FluentUI team in the way you evaluate these tools?

thekeviv avatar Feb 21 '21 10:02 thekeviv

@thekeviv This is an interesting idea. It will be a large undertaking, but potentially valuable.

I'll do a little research internally on what might have already been used in various products here, that should give us some pointers on possible future solutions.

JustSlone avatar Feb 22 '21 23:02 JustSlone

@JustSlone Thank you! Please keep me posted and I would love to work on this!

thekeviv avatar Feb 23 '21 00:02 thekeviv

@thekeviv our team tried implementing roosterjs rich text editor, however we were facing issues to render the content dynamically. We are now implementing rich text editor using alternate package React Draft Wysiwyg, which is based on DraftJS. However, this is still internal development at the moment.

smmatte avatar Feb 23 '21 17:02 smmatte

Thanks for letting me know @smmatte. Since there's already some work going on in the area, I think I will start looking into some other issues. Please let me know if you have any in mind where I can help.

thekeviv avatar Feb 23 '21 18:02 thekeviv

I did some research here, and there is actually a set of react components built on roosterJS using @fluentui/react@v7. https://github.com/microsoft/roosterjs-react

This might be interesting for folks looking for a solution here.

@thekeviv if you are looking to help out, check out issues labeled with "Good First Issue" or "Help Wanted". Those are good places to start, and thank you for looking to help!

JustSlone avatar Feb 26 '21 22:02 JustSlone

Will do, thanks @JustSlone

thekeviv avatar Feb 26 '21 23:02 thekeviv

Closing given the existence of roosterJS

JustSlone avatar Mar 18 '21 03:03 JustSlone

@JustSlone and any internet historians roosterjs-react isn't being actively maintained, so if you want updated Fluent controls you may be out of luck.

We have built a wrapper using roosterjs as suggested, but that's a bit of a pain. In the future, there may still be some value in an official Fluent UI solution given how often this request pops up.

dps88 avatar Apr 16 '21 22:04 dps88