Giter VIP home page Giter VIP logo

Comments (3)

SuperSayu avatar SuperSayu commented on June 16, 2024

Chrome JS console:

Failed to load resource: the server responded with a status of 400 (Bad request) https://[server]/apps/files_texteditor/ajax/savefile

PUT https://[server]/apps/files_texteditor/ajax/savefile 400 (Bad request)
send @ core.js:4
ajax @ core.js:4
saveFile @ merged.js?v=79ca4c103acf2d5693fde46ac20c0cc3-3:584
_onSaveTrigger @ merged.js?v=79ca4c103acf2d5693fde46ac20c0cc3-3:101

from files_texteditor.

mind22 avatar mind22 commented on June 16, 2024

I have the same problem. Is there any new approach?

I assume it is because of the file locking by apcu/redis. It seems that the editor is unable to unlock the current file before saving. The first two or three times the editor has no problem with saving in between after writing some lines, but after this it is not able to unlock it anymore.

from files_texteditor.

SuperSayu avatar SuperSayu commented on June 16, 2024

I notice that the save timer does not work correctly. It is supposed to only save 3 seconds after you stop typing, but it never clears the timer. If you watch the save message after typing, it will flicker between "Saving" and "Saved". I am pretty sure that this is why it is occasionally having this problem: it gets a save request for every character sent, and the pile-up causes messages to arrive out of order, screwing everything up afterwards.

I believe https://github.com/nextcloud/files_texteditor/blob/master/js/editor.js#L638 is supposed to use OCA.Files_Texteditor instead of "this"

from files_texteditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.