Lexical iOS is an extensible text editor framework that integrates the APIs and philosophies from Lexical Web with a Swift API built on top of TextKit.
by facebookSwift
Last 12 weeks · 3 commits
4 of 6 standards met
Repository: facebook/lexical-ios. Description: Lexical iOS is an extensible text editor framework that integrates the APIs and philosophies from Lexical Web with a Swift API built on top of TextKit. Stars: 648, Forks: 58. Primary language: Swift. Languages: Swift (100%). License: MIT. Latest release: 0.2.0 (2y ago). Open PRs: 9, open issues: 21. Last activity: 4d ago. Community health: 75%. Top contributors: mansimransingh, patelneal, drodriguez, amyworrall, damirstuhec, darichey, ebgraham, kc-sn, NSProgrammer, rmaz and others.
Hey everyone! The LexicalMarkdown plugin currently supports exporting the editor's node tree to a Markdown string via LexicalMarkdown.generateMarkdown(from:selection:), but there is no corresponding API to import a Markdown string back into the editor. This means there is no parity with the JSON workflow, which supports both and ). Why it may be useful? Round-trip support: Users who export Markdown should be able to re-import it, enabling use cases like persistence, clipboard paste-as-Markdown, and inter-app content transfer. Parity with JSON: JSON already has full import/export. Markdown should follow the same pattern. Common use case: Many apps need to load content authored externally in Markdown. Also as Lexical not supported by all platforms, it may be useful to store it as something that understandable for all platforms
There is an issue where ordered and unordered lists do not "break" or terminate (unlike Lexical for Web and native Notes app). Usually, tapping the 'Return' key on an empty list item should reset the line to standard paragraph text. Steps to Reproduce 1. Open the editor on a mobile device. 2. Create an Unordered List or Ordered List. 3. Type text into the first item and tap 'Return' on the virtual keyboard. 4. On the new, empty list item, tap 'Return' again. 5. Observe that the list formatting remains instead of reverting to normal text. Expected Behavior Tapping 'Return' on an empty list item should: 1. Delete the empty bullet/number. 2. Move the cursor to a new line. Actual Behavior The editor creates another empty list item, making it impossible to continue writing regular text without manual workarounds
Implement HTML support for ImageNode