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 some tags when copying/pasting from Word #236

Open
rimoi opened this issue Aug 23, 2019 · 0 comments
Open

Paste some tags when copying/pasting from Word #236

rimoi opened this issue Aug 23, 2019 · 0 comments
Assignees

Comments

@rimoi
Copy link

rimoi commented Aug 23, 2019

Hi,

When I want to paste only some tags when pasting text from Word(Microsoft office or Libre Office)

I use paste_word_valid_elements: 'i,em' as mentioned in the docs :

parameters:
  tinymce_css_path: '/js/tinymce/main.css'

stfalcon_tinymce:
  selector: '.tinymce'
  base_url: 'https://my-website.com/'
  language: '%locale%'
  include_jquery: true
  tinymce_jquery: true
  theme:
    admin:
      plugins:
      - 'autoresize table media image code link'
      - 'searchreplace paste directionality fullscreen'
      - 'noneditable visualchars nonbreaking'
      toolbar: 'bold italic underline | hr | styleselect removeformat | bullist numlist | outdent indent blockquote | link unlink | image media | code'
      autoresize_min_height: 300px
      width: 100%
      paste_word_valid_elements: 'i,em'  # here
      paste_enable_default_filters: false
      menubar: false
      content_css: '%tinymce_css_path%'
      browser_spellcheck: true
      entity_encoding: raw
      convert_urls: false

but it does not filter other tags (bold, ...)!

thanks
rimoi

@rimoi rimoi changed the title to paste some tags when copying/pasting from Word Paste some tags when copying/pasting from Word Aug 23, 2019
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

2 participants