codex-team / codex-team/editor.js

[Bug] When using more than one editor on one page, language setting for each editor is not possible.

Open
#1,461 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

When using more than one editor on one page, using the `i18n` option in at least one of those editors will cause all editors to use the last language set.

Steps to reproduce:
1. Use more than one editor on one page.
2. Set the `i18n` option in at least one of those editors.

See example code: https://gist.github.com/ony3000/2793ba5ed28d6a169c727b82b31aeedc

Expected behavior:
1. Editors without the `i18n` option set uses the default language.
2. Editors with the `i18n` option set uses the language set only in that editor.

Screenshots:
![i18n-test](https://user-images.githubusercontent.com/8164191/101278553-50664580-37ff-11eb-9f7a-05a4c7d3cc81.png)

Device, Browser, OS:
* Device: Desktop
* Browser: Google Chrome
* OS: Windows 10 Home

Editor.js version: 2.19.0

Plugins you use with their versions: nothing

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.