[lexical-text] Chore: Add deprecation notice to $findTextIntersectionFromCharacters (#8364) Co-authored-by: Claude noreply@anthropic.com
[lexical-text] Chore: Add deprecation notice to $findTextIntersectionFromCharacters (#8364)
Co-authored-by: Claude noreply@anthropic.com
An extensible text editor framework that provides excellent reliability, accessibility and performance.
Documentation | Getting Started | Playground | Gallery
npm install lexical @lexical/react
import { $getRoot, $getSelection } from 'lexical'; import { LexicalComposer } from '@lexical/react/LexicalComposer'; import { PlainTextPlugin } from '@lexical/react/LexicalPlainTextPlugin'; import { ContentEditable } from '@lexical/react/LexicalContentEditable'; import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin'; import { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary'; const initialConfig = { namespace: 'MyEditor', onError: (error) => console.error(error), }; function Editor() { return ( <LexicalComposer initialConfig={initialConfig}> <PlainTextPlugin contentEditable={<ContentEditable />} ErrorBoundary={LexicalErrorBoundary} /> <HistoryPlugin /> </LexicalComposer> ); }
Try it yourself:
# Install dependencies pnpm install # Start playground dev server pnpm run start # Run tests pnpm run test-unit pnpm run test-e2e-chromium # Lint and type check pnpm run ci-check
See CONTRIBUTING.md for detailed development guidelines.
We welcome contributions! Please read our Contributing Guide to learn about our development process and how to propose bugfixes and improvements.
MIT License © Meta Platforms, Inc.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
An extensible text editor framework that provides excellent reliability, accessibility and performance.
Documentation | Getting Started | Playground | Gallery
Features
Quick Start
Try it yourself:
Development
See CONTRIBUTING.md for detailed development guidelines.
Documentation
Community & Support
Browser Support
Contributors
We welcome contributions! Please read our Contributing Guide to learn about our development process and how to propose bugfixes and improvements.
License
MIT License © Meta Platforms, Inc.