Make addText and delText on API
There's a getText and setText but there are no addText and delText functions on the API.
You can do that on your own by just getting the text, transform it the way you want and set it again
Then there's uselessly extra amounts of data transfer... Imagine large amounts of text...
How hard is it to implement addText(padID, text, location) and delText(padID, fromLocation, toLocation)?
Not too difficult. But its such an edge case that its not worth to implement an api call for that imho
You need two api calls anyway, cause before you can manipulate the text you need to know the text. And the text can be changed on the server side between two api calls
The reason why this is very important is so that other people can develop an app that can use the api and minimize data transfer between the device and the server.
I honestly believe it is very important to add functionality to the api. currently, not much can be done outside the website
But to build an app based on etherpad the api is the wrong way You need a socket.io connection and send changesets over it, thats the only way to do that. Everything else it too heavy
The idea of the api is to let another application manage pads, not to build an editor on top of it
close?