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

Enforcing a mobile version? #17284

Open
Kkiomen opened this issue Oct 17, 2024 · 0 comments
Open

Enforcing a mobile version? #17284

Kkiomen opened this issue Oct 17, 2024 · 0 comments
Labels
type:question This issue asks a question (how to...).

Comments

@Kkiomen
Copy link

Kkiomen commented Oct 17, 2024

📝 Ask a question

I have a problem with CKEeditor
I have a form that allows me to add new text fields. The problem is that when I add a new textarea and then overlay CKEditor on it, when I am on a mobile device it doesn't immediately set the mobile version but the desktop version and therefore the editor goes off the screen.

Is there any way to force the editor to be in the mobile version right away?

document.querySelectorAll('textarea.contents-textarea').forEach(textarea => { // Sprawdź, czy edytor został już zainicjalizowany dla tego textarea if (!textarea.editorInstance) { ClassicEditor.create(textarea, editorConfig) .then(editor => { textarea.editorInstance = editor; }) .catch(error => { console.error(error); }); } });

Image

@Kkiomen Kkiomen added the type:question This issue asks a question (how to...). label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question This issue asks a question (how to...).
Projects
None yet
Development

No branches or pull requests

1 participant