FinalsClub / karmaworld

KarmaNotes.org v3.0
GNU Affero General Public License v3.0
7 stars 6 forks source link

ajaxify wysihtml5 editor window? #411

Open btbonval opened 9 years ago

btbonval commented 9 years ago

Clicking save refreshes the whole page, dropping the editor modal and causing a delay due to the long page load times.

This is a lesser priority, but it might be nice if the editor can be streamlined a little better so that its contents and/or the note contents can be loaded from AJAX without refreshing the entire page.

btbonval commented 9 years ago

Possible approach:

  1. ajaxify note page load (I think this is actually already done!)
  2. upon save, submit a post through ajax or whatever magic that does not cause a page refresh
  3. use ajax to reload the note contents on the page
  4. leave the modal open and over top of the notes through the whole process

Since we reload the editor every time it is closed and opened, we don't really need to worry about keeping the editor's contents fresh via ajax.