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

set paste_as_text:true in PASTE plugin is not working in version 6 and 7 #9535

Open
midori-fukami-haypp opened this issue Apr 5, 2024 · 0 comments

Comments

@midori-fukami-haypp
Copy link

midori-fukami-haypp commented Apr 5, 2024

📝 Provide detailed reproduction steps (if any)

  1. Set paste_as_text to TRUE
  2. Paste in the editor and see that the paste is not converted into plain text
tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'paste',
  menubar: 'edit',
  toolbar: 'paste',
  paste_as_text: true
});

✔️ Expected result

Should the option Paste as plain in the menu to ON
Should the paste be converted into plain text.

❌ Actual result

The option Paste as plain in the menu is OFF
The paste IS NOT converted into plain text.

❓ Possible solution

Check what happened to the option paste_as_text in the PASTE plugin.
Check the version 5 or before, it was working there.

📃 Other details

I'm using the Paste plugin and added the option paste_as_text to True

In the docs it says:

This option enables you to set the default state of the Paste as text menu item, which is added by the paste plugin under the Edit menu dropdown. It’s disabled by default.

But the option in the menu IS NOT on, I need to click on it to be ON and then the paste is converted into plain text.


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

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

No branches or pull requests

1 participant