dsasasasa
Simple WYSIWYG Editor
Click anywhere in the text to start typing or editing the existing text.
This note is editable using a combination of execCommand
and the contentEditable
tag. Making the link work without an ugly alert involved a bit of javascript and could certainly be made more robust, but here's a simple version to get things started. I can do things like bold and italic which can be executed with either a keyboard shortcut (cmd/ctrl + b or cmd/ctrl + i) or I can just click on the buttons in the toolbar up above.
There are a bunch of other options available but I'm sticking with the basics here. Some of the others that could be cool to include are:
- cut
- paste
- fontSize
- heading
- insertImage
- ... and a bunch more
So give it a go and feel free to use what you want.