Comments (11)
Seems like there is no solution to use the browsers default spell check with CodeMirror. Closing this for now.
from kirby-visual-markdown.
Isn't this the normal behavior? It's the same for me using Chrome with any "contentEditable" powered editor/input.
Spell check does work on regular textareas only, doesn't it?
from kirby-visual-markdown.
I did think it used to work? I'm sure it did with other editors?
from kirby-visual-markdown.
It's an interesting issue; the default WYSIWYG editor in Wordpress has spell-check, but something like CKEditor not - http://ckeditor.com/demo
from kirby-visual-markdown.
Sadly yes, I love Visual Markdown, but my spelling is so bad...
from kirby-visual-markdown.
Hmmm. I guess this is something I have to investigate further. I'll leave this open for now.
from kirby-visual-markdown.
Some editors seems to have their own spell checker, but I think using the default one is probably best?
I leave it in your capable hands...
from kirby-visual-markdown.
Just did a quick search and came to the following conclusion:
- Browser based spell checking does in fact work on input and
contentEditable
elements - CodeMirror (what Visual Markdown Editor is based on) doesn't use
contentEditable
elements at all so there's no way of getting browser based spell checking to work - One could integrate a custom, JS based, spell checking library with CodeMirror using overlays, but that would, probably, affect performance and file size massively
Related topic: codemirror/codemirror5#1017
from kirby-visual-markdown.
Strange thing is that the manual refers to a spell-check option;
http://codemirror.net/1/manual.html
disableSpellcheck
Should the editor disable spell-checking on browsers that support it (Firefox 2+).
Default is true, since for most code spell-checking is useless.
Can be changed with the setSpellCheck(on) method.
I tried this option (setSpellCheck(on)) but it didn't work out for me.
There are also some plugins;
- http://nextstepwebs.github.io/codemirror-spell-checker/
- http://stackoverflow.com/questions/12343922/codemirror-with-spell-checker
from kirby-visual-markdown.
The manual link you posted is really outdated. It refers to an old version of CodeMirror from a time when it was using a contentEditable
element.
from kirby-visual-markdown.
Okay - I will not digg in it further more.
The most easy thing is to add a code-toggle button to the toolbar, which makes the textarea
visible.
This one shows the typo's you made - so you can correct them and hide the raw-code by clicking on the button again.
Don't know this is helpfull...
from kirby-visual-markdown.
Related Issues (20)
- Dragging a structure item into a visual markdown field crashes codemirror
- 414 Error in Browser when using long texts
- Permission support
- Tool options not mentioned in readme
- Change font-size HOT 3
- Update docs with CLI install/update instructions
- Using <textarea /> in content is wracking the panel
- Is This Plugin Still Being Developed?
- can't setup tools / toolbar visibility HOT 2
- Feature request: link options modal HOT 1
- Kirby 3 ?
- Is There a Way to Hide 'Purchase a License'?
- [Feature Request] Please Add a `toolbar: bottom` Option
- Wrong cursor position on first load
- Request: Add optional buttons for all headings HOT 4
- Feature request: Headers & code snippets
- false formating of a link HOT 3
- Feature: choose bullet style for lists
- Bullets aren't showing up. HOT 2
- Installed but not working? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-visual-markdown.