You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
But how we can see at facebook.com, it uses minimized 5-digit names of these same classes: ..looks like CSS Modules usage
How we can redefine Draft.js class names in our own projects the same way?
It seems at the moment the editor does not provide the api to change the core class names..
The text was updated successfully, but these errors were encountered:
This ties into our internal CSS build system and it's not going to be practical for us to support this in open source – it's unlikely that it will make a practical difference for anyone so hopefully it isn't a big deal for you. If you're interested, we statically transform calls to cx() using a Babel transform that replaces the class names with a minified version. (We never reference classes with a slash without using cx().) If you were motivated you could implement the same thing by building Draft from source but it's unlikely to be worth the time it would take you to set it up.
src/component/base/DraftEditor.react.js uses a special class names, for example:
DraftEditor/root
DraftEditor/editorContainer
public/DraftEditor/content
But how we can see at facebook.com, it uses minimized 5-digit names of these same classes:

..looks like CSS Modules usage
How we can redefine Draft.js class names in our own projects the same way?
It seems at the moment the editor does not provide the api to change the core class names..
The text was updated successfully, but these errors were encountered: