Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement (conversion-config): Shortcut converts blocks respectfully to the config.defaultStyle #89

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented Oct 17, 2024

Problem

Now conversion config converted current block to the nested-list with hardcoded unordered style

Solution

Since codex-team/editor.js#2848
config could be passed to the conversionConfig.import method
Now conversion of the block without actually choosing style of the nested-list (only in case of the shourtcut usage) will work respectfully to the config.defaultStyle

Changes

  • Updated editorjs to the latest (2.31.0-rc.2)
  • conversionConfig.import method takes config and uses it config.defaultStyle on conversion

Related: #81

@e11sy e11sy changed the title Improvement (conversion-config): Conversion by shortcut converts blocks respectfully to the config.defaultStyle Improvement (conversion-config): Shortcut converts blocks respectfully to the config.defaultStyle Oct 17, 2024
src/index.ts Outdated Show resolved Hide resolved
@e11sy e11sy merged commit 047bb73 into release/2.0 Oct 17, 2024
1 check passed
@e11sy e11sy deleted the improve-conversion-config branch October 17, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants