benweet / stackedit.js

Add StackEdit to any website
https://benweet.github.io/stackedit.js/
MIT License
1.08k stars 119 forks source link

stackedit.js as cell editor in Google Sheets #32

Open jesuslalvaro opened 4 years ago

jesuslalvaro commented 4 years ago

This capture shows my first attempt, implemented as a side panel but some tweaks on stackedit.js would be needed . Unfortunately, it is running inside an ìframe which is protected due to cross-origin policy, so no javascript can be used from outside to fix it. Some requests to be adressed as an option at init time:

  1. Clean tool bar. With so small width some icons collapse. So just undo and redo could be enough
  2. Add an extra icon with bound to a function passed at the initialization time. This could allow to refresh content to de selected cell. Initially when the side bar is called, it opens the selected cell. In order to edit other cell, you have to close the editor, select a new cell, launch the sidebar, and wait for the editor to be loaded from web. This could be simplified by a Stackedit event attached to the icon.
  3. Reduce both sides padding in order to have more editing space. Optionally reduce fontsize. Available width is so small ....
  4. Bind the Stackedit icon to the site but filling the new editor with the current text content of this editor. Again a stackedit event would do the job, if the server would accept initial content as url prameter or even as a POST...

Thanks