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

LanguageTools integration. #4

Open
Eonasdan opened this issue May 1, 2022 · 3 comments
Open

LanguageTools integration. #4

Eonasdan opened this issue May 1, 2022 · 3 comments
Labels
Area: Build Impacts the build system. Priority: Low Type: Feature New feature or request

Comments

@Eonasdan
Copy link
Owner

Eonasdan commented May 1, 2022

I added a docker compose to run the LT locally. I'd like to tie the editor save events to get results back from the api and some how display the suggestions.

@Eonasdan Eonasdan transferred this issue from Eonasdan/blog May 1, 2022
@Eonasdan Eonasdan added Type: Feature New feature or request Priority: Low Area: Build Impacts the build system. labels May 1, 2022
@Eonasdan
Copy link
Owner Author

Eonasdan commented May 16, 2022

  • Check if I can modify the editorjs data after save to verify I can influence that
  • LT's site uses an overlay. I think I could do something like <span class="lt-suggestion" data-lt="0">misspelllled</span>. Here 0 is the index of suggestions returned.
  • Must be able to remove the highlights before post save
  • Should add a button to the top of the editor to run LT against all the blocks one last time.
  • toolip should offer replacement or ignore
    • on ignore
      • maybe cache this? calculate some reference, maybe "context.text"?
      • remove tagging element
    • on accept
      • backup editorjs data
      • locate data block
      • attempt to replace fragement
      • remove tagging element
      • null out backup?
      • how to determine success?
  • if match can't be located -> display summary of such

@Eonasdan
Copy link
Owner Author

EditorJs already has some tooltip tools. I might be able to integrate with that.

Also check out https://github.com/editor-js/marker.

@Eonasdan
Copy link
Owner Author

Need to allow config to turn off LT and disable calls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Build Impacts the build system. Priority: Low Type: Feature New feature or request
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant