Roundcube Community Forum

Release Support => Requests => Topic started by: soromir on October 31, 2017, 09:47:01 AM

Title: tinymce
Post by: soromir on October 31, 2017, 09:47:01 AM
Hi, there was a problem, men need to insert content from google docs, so that all rows that are highlighted in color were moved to the editor. How to set up the editor
Title: Re: tinymce
Post by: JohnDoh on November 02, 2017, 03:30:51 PM
that sounds like a tinymce issue, so its unlikely there will be anything you can do from within Roundcube. have you checked the tinymce issues https://github.com/tinymce/tinymce/issues to see if its a known thing?
Title: Re: tinymce
Post by: soromir on November 06, 2017, 05:57:41 AM

A new version of tinymce 4.7.1 (2017-10-09) was installed.
on the contrary it removes inile styles.
The configuration is standard.
For testing was to take google docs exel were highlighted columns in different colors.
I think this is not a bug tinymce
https://www.tinymce.com/docs/demo/format-html5/ does not remove inline styles.
Title: Re: tinymce
Post by: JohnDoh on November 08, 2017, 03:02:27 AM
It looks like may be the version of TinyMCE used on that demo page you linked to is 4.7.2 though I see that was only released yesterday so may be when you tried it it had 4.7.1.

The last version of Roundcube shipped with version 4.5.8. You say you have updated that to 4.7.1? There may be other things you need to update in Roundcube to make it compatible with the new version, probably in editor.js, don't ask me what they are I do not follow TinyMCE dev.

Finally you said your configuration is standard but the screenshot you posted looks nothing like the editor in Roundcube. You have a menu bar, Roundcube does not have that and the toolbar looks different too.

I'm not sure what you are doing exactly but it still does not seem like a Roundcube issue to me.
Title: Re: tinymce
Post by: soromir on November 08, 2017, 11:33:59 AM

today updated to the latest version of tinymce 4.7.2 (2017-11-07).
Attached two versions of editor.min.js
If you use the .old version, then it's okay when .new removes the inline style
Title: Re: tinymce
Post by: JohnDoh on November 08, 2017, 11:53:46 AM
the only difference between the 2 files appears to be some whitespace. in any case just saying it works with x and not y is not very helpful when they are minified. please explain exactly what you changed and why and preferably open a pull request on github https://github.com/roundcube/roundcubemail/pulls with your changes.
Title: Re: tinymce
Post by: soromir on November 09, 2017, 10:57:44 AM

The whole problem was in the tinymce plugin paste,
solution
https://gitlab.awesome-it.de/kolab/roundcube-plugins/blob/feature_caldav_328/plugins/tinymce_config
adding configuration strings
            'paste_convert_word_fake_lists' => false,
            'paste_remove_styles_if_webkit' => false,
            'paste_merge_formats' => false,
            'paste_as_text' => false,
            'paste_enable_default_filters' => false,
            'paste_filter_drop' => true,

thanks