codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.95k stars 2.09k forks source link

Use Union Types For Exports Rather Then Enums [Bug] #2151

Open mbostwick opened 2 years ago

mbostwick commented 2 years ago

Describe a bug.

Steps to reproduce:

  1. Use Editor in javascript
  2. Set Log Level via imported enum

Expected behavior: log level should set.

Screenshots:

Device, Browser, OS: Editor.js version: 2.25.0 Plugins you use with their versions: None. Related Issue: https://github.com/codex-team/editor.js/issues/1576 Question: If I submit a PR replacing enums will it be accepted ?
GabrielGil commented 2 years ago

Rel: #1576