Skip to content
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

Add textResolver to preprocess text values #67

Open
edvinasjurele opened this issue Sep 12, 2023 · 0 comments
Open

Add textResolver to preprocess text values #67

edvinasjurele opened this issue Sep 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@edvinasjurele
Copy link
Collaborator

edvinasjurele commented Sep 12, 2023

Context

There might be some cases which requires controlling the text values in text nodes. Some of the use cases are:

  • translations (register/translate text value via custom admin solution, f.e. adding ICU message syntax support)
  • text sanitisation, encoding/decoding
  • text replacement (f.e. have some replacable placeholders like {date} so the app depending on business logic would inject the correct)

TODO

  • Add textResolver to support preprocessing of the text values in rich text
  • Add DEMO example
  • Update README about the possibility of such functionality
  • Cover with TS types
@edvinasjurele edvinasjurele changed the title Add textResolver function to control rendering of plain text Add textResolver function to preprocess text values Sep 12, 2023
@edvinasjurele edvinasjurele changed the title Add textResolver function to preprocess text values Add textResolver to preprocess text values Sep 12, 2023
@edvinasjurele edvinasjurele added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant