TinyMCE: copy to Google Docs

People,

My company should support the following workflow: - It creates rich content in Google Docs (with simple formatting - bold / italics, as well as hyperlinks) - This content is then inserted into the internal CMS that uses TinyMCE.

Problem: when formatting, all formatting is lost.

Already tried the plugin "paste from Word" - it does not work.

Please inform. Thank!

UPDATE : I narrowed the issue down to Google Chrome. Firefox works great. I also used paste_pre_processing () callbacks - the data gets corrupted before I get there.

+5
source share
3 answers

, Paste TinyMCE. valid_styles TinyMCE. . :

valid_elements: "a[href|title|target],del,b,strong,del,i,blockquote,p,br,em,ul,li,ol,span[style]",
valid_styles : { '*' : 'font-weight,font-style,text-decoration' },
+3
+1

I know this question has been asked for a long time, however I am making an application that requires copying and pasting from google drive into tiny mce. This is actually quite simple with a free plugin to insert. Just remove the filters so that it can copy all the data.

 tinymce.init({
    selector: 'textarea',
    plugins: "paste",
    paste_data_images: true,
    paste_enable_default_filters: false,
    paste_remove_styles_if_webkit: false
 });
0
source

All Articles