Giter Site home page Giter Site logo

Spell Checking about rustpad HOT 8 CLOSED

ekzhang avatar ekzhang commented on May 9, 2024
Spell Checking

from rustpad.

Comments (8)

ekzhang avatar ekzhang commented on May 9, 2024

No I don't believe so, it's intended to be a code editor so spell checking isn't built in.

from rustpad.

abn0mad avatar abn0mad commented on May 9, 2024

@ekzhang - thanks for the reply :)

As Rustpad supports both markdown and plain text it would be a great lightweight alternative to Etherpad. Wouldn't it be possible somehow to enable the browser spell check plugin for those file types?

I was hoping to use Rustpad to edit markdown files, as a simple frontend for the HUGO site generator.

It seems that all Monaco based apps have this issue, it is the same with Gitea / Forgejo..

from rustpad.

ekzhang avatar ekzhang commented on May 9, 2024

Interesting! Hmm, I just released a simpler and more minimal collaborative editing server, and this one is based on CodeMirror 6, which supports the browser's native spell check if you just add:

EditorView.contentAttributes.of({ spellcheck: 'true' }),

I'm not sure what your goal is as a Hugo frontend, are you trying to create an application for users, or just for yourself? In either case I think this one will be easier to embed within a larger app than Rustpad.

from rustpad.

abn0mad avatar abn0mad commented on May 9, 2024

Thanks for the prompt reply @ekzhang :))

Nice - cm-collab seems like a nice upcoming solution, especially after a dark mode has been added.

I'm not trying to make any larger application at the moment, at least not for this purpose. My main problem with HUGO is not having a nice Markdown editor that will allow me to use LanguageTool or Grammarly when writing posts. I exclusively run Linux, but haven't been able to find an offline editor that has LanguageTool support (save some very old and poorly maintained (Neo)ViM plugins that don't work very well). So far only Etherpad and Hedgedoc fit the bill more or less, but they are rather heavy and a bit overkill. Rustpad or Gitea would be great (the latter especially as the HUGO site is hosted on Gitea as well) - but both use Monaco, so spell-checking plugins are a no-go for now.

After raising the issue here - I found this - this morning, so it seems the issue has been around for a while, but the Monaco devs aren't doing anything with it so far.

Your cm-collab project looks promising though :))

from rustpad.

ekzhang avatar ekzhang commented on May 9, 2024

If you're looking for an offline editor then I'm not sure either make that much sense as collaborative editors, maybe try StackEdit or any other solution.

My recent project was just a tech demo and not meant to be a full user application

from rustpad.

abn0mad avatar abn0mad commented on May 9, 2024

@ekzhang - no, I just mentioned it as to show that I've explored both avenues, a collaborative editor would be best for sure, although at the moment any (lightweight) editor with some form of browser based spelling check plugin support would fit the bill. I think your cm-collab demo has potential too, it's a nice, minimalist and lightweight solution compared to Etherpad and HedgeDoc.

It would be great if Monaco would offer a browser based spelling check option on Markdown and plain text - so that Rustpad and Gitea could inherit the feature.

from rustpad.

ekzhang avatar ekzhang commented on May 9, 2024

Thanks for the kind words!

Just to repeat:

No I don't believe so, it's intended to be a code editor so spell checking isn't built in.

This feature is out-of-scope for Rustpad itself regardless of whether it's supported by Monaco, so I'm closing it now. If you want to write your own collaborative Markdown editor, I think I've provided you all the resources.

from rustpad.

abn0mad avatar abn0mad commented on May 9, 2024

Fair enough, thanks for the replies and of course your hard work on Rustpad; a great tool - clean, performant and well-designed overall :)

from rustpad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.