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

Even though I disable some editor plugins, they are displayed on mobile #243

Closed
Tahmasb opened this issue Dec 13, 2023 · 2 comments
Closed
Labels

Comments

@Tahmasb
Copy link

Tahmasb commented Dec 13, 2023

Jodit Version: 1.3.39

Browser: Chrome
OS: phone android
Is React App: true (in next.js app)

Code
"use client"
import styles from "./editor.module.css"

import JoditEditor from "jodit-react"
import { Grid } from "@mui/material"

const Editor = ({ mainRef }) => {
const config = {
height: "400px",
direction: "rtl",
disablePlugins: [
"table",
"video",
"file",
"symbols",
"print",
"bold",
"about",
"indent",
"redo-undo",
"search",
"font",
"ordered-list",
"image",
"preview",
"fullsize",
"hr",
// "link",
"line-height",
"justify",
// "format-block",
"class-span",
"clean-html",
"clipboard",
"color",
"spellcheck",
],
}
return (



)
}
export default Editor

I disabled some plugins, but these plugins are disabled only on the desktop (Windows). But I want these plugins to be disabled in the mobile version, but this is not happening.
What should I do to do this?

Expected behavior:
I expect that the plugins I disabled will also be disabled in the mobile version, but they will be disabled only in the computer(descotp)

Actual behavior:
But what happens is that my settings are only applied to desktop and not to mobile

@Tahmasb
Copy link
Author

Tahmasb commented Dec 16, 2023

What I realized now is that it doesn't matter if it's a mobile phone or a desktop. Whenever the screen size is reduced, those plugins that I disabled will be displayed

@rastermechanism
Copy link

Hello, have any one found any solution for this? On mobile all icons are coming which make it clumsy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@xdan @rastermechanism @Tahmasb and others