-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lexical): add lexical to admin #1666
base: main
Are you sure you want to change the base?
Conversation
🧪 Review environmenthttps://st6mwjuohbg5xodge5azl4mieq0snblr.lambda-url.ca-central-1.on.aws/ |
… will always be true
className="editor-input focus:outline-blue-focus" | ||
id={editorId} | ||
ariaLabel={ariaLabel && ariaLabel} | ||
ariaDescribedBy={ariaDescribedBy && ariaDescribedBy} |
Check warning
Code scanning / CodeQL
Identical operands Warning
ariaDescribedBy
ariaDescribedBy
ariaLabel?: string; | ||
ariaDescribedBy?: string; | ||
}) => { | ||
var textInput = React.createRef(); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
…does (instead of h2/h3 like forms did)
…ld be reverted later ↩️
|
||
import FloatingLinkEditorPlugin from "./plugins/FloatingLinkEditorPlugin"; | ||
import ListMaxIndentPlugin from "./plugins/ListMaxIndentPlugin"; | ||
import TabIndentationPlugin from "./plugins/TabIndentationPlugin"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
import { mergeRegister, $getNearestNodeOfType } from "@lexical/utils"; | ||
|
||
import { $isLinkNode, TOGGLE_LINK_COMMAND } from "@lexical/link"; | ||
import { useTranslation } from "react-i18next"; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
RangeSelection | GridSelection | NodeSelection | null | ||
>(null); | ||
|
||
const { t } = useTranslation(); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Summary | Résumé
This is an experiment to try using the Lexical editor inside of admin. It would replace our manual text areas that we require users to enter markdown into.
Right now I just plunked it on the
/welcome
page while I was trying to get it working.Lessons learned:
Next steps:
Screenshot