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

Paste plugin - Cannot read property 'elements' of undefined #253

Open
Pacn91 opened this issue Dec 11, 2018 · 0 comments
Open

Paste plugin - Cannot read property 'elements' of undefined #253

Pacn91 opened this issue Dec 11, 2018 · 0 comments

Comments

@Pacn91
Copy link

Pacn91 commented Dec 11, 2018

Hi, I'm getting the follow error after adding the paste plugin and setting to true the paste_as_text in the tinymce.yml file.

screenshot_1

I get immediately that error when I press CTRL+V, not allowing me to paste the content.

Here is my tinymce.yml file:

plugins:
  - paste
toolbar:
  - styleselect | bold italic | undo redo | paste
remove_linebreaks: true
forced_root_block: false
paste_as_text: true

Am I doing something wrong or is this a bug? I'm just trying to get no styles when I copy paste from word. Maybe you can help me! Thank you in advance

UPDATE
If I remove the paste_as_text from the conf file, no error is originated. So I tried the follow combination (paste_enable_default_filters: false and paste_word_valid_elements: "i,em"), but seems that they aren't working too. Also the button paste is not working too.

plugins:
  - paste
toolbar:
  - styleselect | bold italic | undo redo | paste
remove_linebreaks: true
forced_root_block: false
paste_enable_default_filters: false
paste_word_valid_elements: "i,em"
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