How to use Editor with Express and EJS and update object without DB

How to use Editor with Express and EJS and update object without DB

DozerDozer Posts: 1Questions: 1Answers: 0
edited August 2020 in Free community support

Hi,
I'm a bit new using Editor and I can't find a way to solve my problem.
I'm using Node Js with Express JS and EJS to develop an app that instead of using a database, uses objects that are passed to the EJS templates. I want to know if it's possible to use the Editor inside one table and then whenever the user edits any row, the object related with this row updates its values automatically and the if I need to use the object for any other operation, the object values are always updated in both, client and server side.

Thanks.

Answers

  • allanallan Posts: 63,213Questions: 1Answers: 10,415 Site admin

    It will certainly be possible, but it isn't something that will just happen out of the box. You'd need to override the ajax option, similar to this example which makes use of localStorage.

    The client / server data interchange used by Editor, which is information you'll also need, is available here.

    Allan

This discussion has been closed.