AaronDavidNewman / Smoosic

A music notation editor written in javascript
Other
98 stars 14 forks source link

I want to load json from the DB in editor. #24

Closed vgulshan1985 closed 3 years ago

vgulshan1985 commented 4 years ago

Hi @AaronDavidNewman ,

Hope you are well.

I wan to load the Json in editor which is saved in DB.

Can you help in that?

Also what is the best way to store Json not the SVG in DB?

Please explain.

Thanks for this Plugin.

Thanks, Gulshan

AaronDavidNewman commented 4 years ago

SmoScore.serialize method creates JSON. Look in fileDialog.js at the save function. You can just send it to a server via XHR call and store it as a blob.


    var txt = this.layout.score.serialize();
    txt = JSON.stringify(txt);
AaronDavidNewman commented 3 years ago

@vgulshan1985 if this is answered I will close this ticket