You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*** Methods for parsing JSON reactor data to HTML blocks*/cEditor.renderer={/** * Asyncronously parses input JSON to redactor blocks */makeBlocksFromData : function(argument){console.info('renderer makeBlocksFromData');Promise.resolve()/** First, get JSON from state */.then(function(){returncEditor.state.blocks;})/** Then, start to iterate they */.then(cEditor.renderer.appendBlocks)/** Write log if something goes wrong */.catch(function(error){cEditor.core.log('Error while parsing JSON: %o','warn',error);});},/** * Parses JSON to blocks * @param {object} data * @return Primise -> nodeList */appendBlocks : function(data){console.info('renderer appendBlocks %o',data);/** * Тут надо создать очередь по аналогии с parser.appendNodesToRedactor, * которая будет асинхронно парсить блоки с помощью метода render у каждого плагина */},}/*** Methods for saving HTML blocks to JSON object*/cEditor.saver={/** * Saves blocks */saveBlocks : function(argument){console.info('saver saveBlocks');}}
It iterates blocks and calls save() method of each entry.
Then it builds final JSON and moves to the database.
The text was updated successfully, but these errors were encountered: