mirror of
https://github.com/codex-team/editor.js
synced 2026-03-15 23:25:47 +01:00
new improvements
This commit is contained in:
parent
c1b3fb2764
commit
3d06bb95ce
5 changed files with 12 additions and 15 deletions
|
|
@ -500,7 +500,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|||
*/
|
||||
|
||||
/**
|
||||
* @classdesc Abstract Block class that contains block information, tool and tool class instance
|
||||
* @classdesc Abstract Block class that contains Block information, Tool name and Tool class instance
|
||||
*
|
||||
* @property tool - Tool instance
|
||||
* @property html - Returns HTML content of plugin
|
||||
|
|
@ -600,11 +600,9 @@ var Block = function () {
|
|||
measuringEnd = window.performance.now();
|
||||
|
||||
return {
|
||||
tool: _this.name,
|
||||
data: finishedExtraction,
|
||||
processInfo: {
|
||||
tool: _this.name,
|
||||
time: measuringEnd - measuringStart
|
||||
}
|
||||
time: measuringEnd - measuringStart
|
||||
};
|
||||
}).catch(function (error) {
|
||||
|
||||
|
|
@ -2647,8 +2645,8 @@ var Saver = function (_Module) {
|
|||
allExtractedData.forEach(function (extraction, index) {
|
||||
|
||||
/** Group process info */
|
||||
console.log('"' + extraction.processInfo.tool + '" extraction info', extraction);
|
||||
totalTime += extraction.processInfo.time;
|
||||
console.log('\xAB' + extraction.tool + '\xBB saving info', extraction);
|
||||
totalTime += extraction.time;
|
||||
items.push(extraction.data);
|
||||
});
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -103,6 +103,7 @@ class Text {
|
|||
|
||||
/**
|
||||
* Get plugin`s element HTMLDivElement
|
||||
* @param {HTMLDivElement} block - returned self content
|
||||
* @returns {HTMLDivElement} Plugin`s element
|
||||
*/
|
||||
save(block) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @classdesc Abstract Block class that contains block information, tool and tool class instance
|
||||
* @classdesc Abstract Block class that contains Block information, Tool name and Tool class instance
|
||||
*
|
||||
* @property tool - Tool instance
|
||||
* @property html - Returns HTML content of plugin
|
||||
|
|
@ -124,11 +124,9 @@ export default class Block {
|
|||
measuringEnd = window.performance.now();
|
||||
|
||||
return {
|
||||
tool: this.name,
|
||||
data: finishedExtraction,
|
||||
processInfo : {
|
||||
tool : this.name,
|
||||
time : measuringEnd - measuringStart
|
||||
}
|
||||
time : measuringEnd - measuringStart
|
||||
};
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@ export default class Saver extends Module {
|
|||
allExtractedData.forEach((extraction, index) => {
|
||||
|
||||
/** Group process info */
|
||||
console.log(`\"${extraction.processInfo.tool}\" extraction info`, extraction);
|
||||
totalTime += extraction.processInfo.time;
|
||||
console.log(`«${extraction.tool}» saving info`, extraction);
|
||||
totalTime += extraction.time;
|
||||
items.push(extraction.data);
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue