I opened a google doc, it seems that the google doc is not a simple text area .... it seems that this is a customize stuff.... is there any library for doing that kind of things?
However, google docs specifically does not use contentEditable. Instead, they implemented their own rendering engine in JavaScript. Unless you plan a project on the scale of google docs (i.e. you have at least, say, 3 people willing to work full-time on the rendering engine), contentEditable is the way to go.
On your computer, open a document in Google Docs. To select a word, double-click it or use your cursor to select the text you want to change. Start editing. To undo or redo an action, at the top, click Undo.
The good news is that Google Drive lets you lock down your files, so that nobody can copy, download or print them without your permission. You can also prevent unauthorized people from editing your work.
On your computer, open a document at docs.google.com. on the toolbar, choose an option: At the top right, click Editing.
Most editors use the contentEditable
property. Simply setting it on any HTML element enables editing, copy&paste, spell checking, formatting etc. in modern user agents.
However, google docs specifically does not use contentEditable. Instead, they implemented their own rendering engine in JavaScript. Unless you plan a project on the scale of google docs (i.e. you have at least, say, 3 people willing to work full-time on the rendering engine), contentEditable is the way to go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With