summaryrefslogtreecommitdiff
path: root/test/controllers/shared_previews_controller_test.rb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-13 17:09:31 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-13 17:09:31 +0200
commitaa14587b052a0aa7884aaf27183981975168ab14 (patch)
tree2b043061a06474929bbfb9fe79a7985267ccef17 /test/controllers/shared_previews_controller_test.rb
parent0b6ae26f3b4c3c8278e569fa6644a544e996c25d (diff)
Wire real autosave into translation editing
The shared TinyMCE setup initializes cccms.setup_autosave() on any page with a textarea.with_editor, unconditionally starting a 7-second interval that submits to the form's data-autosave-url -- which the translation edit form never set, so the interval PUT the current page URL itself and 404'd on a nonexistent route. Fixed by actually giving it something to talk to, rather than suppressing it: a real autosave endpoint, and update now goes through Node#autosave!/#save_draft! -- the same pipeline the primary editor uses, fixed earlier this session for exactly this kind of cross-locale carryover. This was the autosave-buffer parity already flagged as due after the proof of concept; the shared JS just forced the timing.
Diffstat (limited to 'test/controllers/shared_previews_controller_test.rb')
0 files changed, 0 insertions, 0 deletions