polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Feature request: HTML editor

Open BarryCarlyon opened this issue 8 years ago • 56 comments

Feature request: HTML editor

Polaris provides a "Default text field" form component. But doesn't provide a "rich html editor" or TinyMCE configuration.

Expected behavior

This would make it easier for Developers to take, say, a product description out of Shopify and provide it for easy editing in an Application under the same editor and configuration of said editor as native Shopify admin.

BarryCarlyon avatar Apr 25 '18 10:04 BarryCarlyon

@BarryCarlyon is a WYSIWYG editor what you are looking for?

image

If so, I would love to see this as well!

timcmiller avatar May 22 '18 16:05 timcmiller

Yeah the same thing as (default option being same as) in Shopify product admin

BarryCarlyon avatar May 22 '18 16:05 BarryCarlyon

Thanks for the request, @BarryCarlyon. We will be building something for our internal use case, but for a variety of technical reasons we’re not able to translate that directly into something we can release in Polaris. Right now a rich text/HTML editor is part of our backlog.

Because we’re not able to actively work on this right now, I’ll close this issue. However, we encourage everyone who’s interested to add a 👍 to the original issue report. We’ll take your collective interest into account when we look at what to work on next.

ry5n avatar May 31 '18 21:05 ry5n

Hey @ry5n,

Wanted to chime in and see if there was any plan on re-opening this issue. You encouraged people to add a 👍 if they were still interested and it now has more than double the amount of 👍 than any other issue. Would love to see this component implemented.

timcmiller avatar Jul 26 '18 16:07 timcmiller

I would love to have that as well.

rkbhochalya avatar Aug 23 '18 03:08 rkbhochalya

Thanks for the upvotes everyone. It’s clear that this is the no. 1 feature request; we’ll discuss how we might make this available. For a variety of technical reasons we may not be able to simply release the component we use internally for this—meaning we might have to build it twice. That’s just for transparency around why this might be more effort than one might expect.

ry5n avatar Aug 23 '18 20:08 ry5n

We are in the process of getting TinyMCE version 5 ready for release with a really great new UX, and we could look at including a Polaris theme if it is of interest

androb avatar Sep 08 '18 17:09 androb

If I'm correct, Shopify uses Basecamp's Trix editor underneath the hood so, why we need this? 🤷🏽‍♂️

SylarRuby avatar Aug 29 '19 06:08 SylarRuby

@SylarRuby is there a good react version of trix?

acomito avatar Sep 05 '19 12:09 acomito

Not sure, I think Spotify have done some work with TinyMCE in the past. V5 of TinyMCE has come a long way since September last year. Would be good timing to look at a Polaris skin now.

androb avatar Sep 05 '19 22:09 androb

Any update around this @androb @ry5n ? Components status still shows it as under consideration.

image

realpratiknikam avatar Feb 09 '20 23:02 realpratiknikam

👋 This isn't on the roadmap at the moment, but we keep an eye on this issue for future prioritization.

kaelig avatar Feb 10 '20 14:02 kaelig

A +1 from me. Ideal for when you want to create a new product from within your app

greghesp avatar Jun 21 '20 10:06 greghesp

We need this component please!!!! I want to give the option to the user to customize text without having to insert HTML

michelarteta avatar Jul 04 '20 15:07 michelarteta

I'd also need a visual HTML editor component.

LukaszWiktor avatar Aug 25 '20 12:08 LukaszWiktor

+1 This would be super useful for internal apps too. At the moment am using Markdown as a workaround, but an RTE would be much more user-friendly and easy to use for internal teams. :)

Karen-boop avatar Sep 22 '20 11:09 Karen-boop

Would love to see this component :)

talbshoam avatar Sep 26 '20 12:09 talbshoam

I'd like to have an editor that can also handle liquid as seen in the admin panel.

taketsu avatar Nov 05 '20 08:11 taketsu

Would Love this!

Popesites avatar Nov 10 '20 07:11 Popesites

This is a must!! Would be really great to have this feature implemented into Shopify Polaris.

alexissel avatar Nov 10 '20 21:11 alexissel