simplajs / simpla

Open, modular, and serverless content management for a modern web
https://www.simplajs.org
MIT License
527 stars 36 forks source link

Decouple edit mode from #edit #29

Closed madeleineostoja closed 7 years ago

madeleineostoja commented 8 years ago

Right now the only way to make Simpla editable is to use #edit in the URL. This is both fragile (eg: SPAs that use hash nav, see #10) and needlessly opinionated. We should have a mechanism for disabling hash tracking, and a programatic way for developers to make Simpla editable.

Options for decoupling hashtracking:

Depends how 'core' we think #edit is.

madeleineostoja commented 7 years ago

Hashtracking has been stripped for v2 (see 2.0-preview), and moved to the new simpla-admin component.

Edit mode can be entered imperatively in v2 with the editable(state) method.