plugins saver method updated (#87)

* changed parsing method. Now data parses data like sample.json

* saver module

* upgraded plugins
This commit is contained in:
khaydarov 2016-07-16 01:37:01 +03:00 committed by Peter Savchenko
commit f3d70c8724
6 changed files with 64 additions and 58 deletions

View file

@ -39,14 +39,15 @@ var codeTool = {
/**
* Method to extract JSON data from HTML block
*/
save : function (block){
save : function (blockContent){
var json = {
type : 'code',
data : {
text : null,
}
};
var block = blockContent[0];
json = {
type : 'code',
data : {
text : null,
}
};
json.data.text = block.innerHTML;