mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 08:29:52 +01:00
Feat (Conversion-config): pass target tool config to the conversionConfig.import method (#2848)
* pass config to the conversionConfig.import method - Now `convertStringToBlockData` method passes target tool config the import method - Fixed types in convesion config file (somehow imprort could return function that returns string, but import should return method that would return ToolData) this caused just type error that never been reached because types were actually ignored - Added test that checks, that import method actualy gets passed config * update changelog * eslint fix * updated test description * jsdoc improved * typos in changelog
This commit is contained in:
parent
3cd24c4da1
commit
da4257a67f
6 changed files with 92 additions and 11 deletions
|
|
@ -863,7 +863,7 @@ export default class BlockManager extends Module {
|
|||
/**
|
||||
* Now using Conversion Config "import" we compose a new Block data
|
||||
*/
|
||||
let newBlockData = convertStringToBlockData(cleanData, replacingTool.conversionConfig);
|
||||
let newBlockData = convertStringToBlockData(cleanData, replacingTool.conversionConfig, replacingTool.settings);
|
||||
|
||||
/**
|
||||
* Optional data overrides.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue