?
avatar coolcat-creations
coolcat-creations
14 Sep 2016

Steps to reproduce the issue

Copy a text in TinyMCE which is NOT formatted.
Paste it below.

Expected result

If you copy non-formatted text it should paste non formatted text

Actual result

A span is wrapped around the pasted text. <span style="font-size:12.16px">text</span> in my case

System information (as much as possible)

Joomla 3.6.2

Additional comments

image

avatar designbengel designbengel - open - 14 Sep 2016
avatar designbengel designbengel - change - 14 Sep 2016
The description was changed
avatar designbengel designbengel - edited - 14 Sep 2016
avatar brianteeman brianteeman - change - 14 Sep 2016
Status New Confirmed
avatar brianteeman
brianteeman - comment - 14 Sep 2016

I can confirm this


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12035.

avatar dgt41
dgt41 - comment - 14 Sep 2016

@designbengel try this:

  • Select Functionality extended in the tinyMCE options
  • Got to Advanced tab and at the end type in the Custom Plugin the word paste
  • Save the plugin
  • Retest

The paste plugin SHOULD BE ENABLED BY DEFAULT on EVERY tinyMCE instance. This 2016!!!

avatar zero-24 zero-24 - change - 14 Sep 2016
Labels Added: ?
avatar DavidBoggitt
DavidBoggitt - comment - 14 Sep 2016

Isn't this a chrome/browser thing? I'm sure I exchanged a forum question about JCE on exactly the same thing and there's a setting that stops this happening.

avatar Fedik
Fedik - comment - 14 Sep 2016

for a note, it is not a Joomla! bug, it is TinyMCE feature :neckbeard:
but I am agree with @dgt41

avatar mbabker
mbabker - comment - 14 Sep 2016

The only comment I can make is one should be careful how the paste behaviors get modified with plugins. If it turns off the ability to copy pre-formatted text from elsewhere and causes it to always paste in plain text that'd be a no-go in my book.

(I don't know what the plugin mentioned actually does so take this as a general comment and nothing more)

avatar Fedik
Fedik - comment - 14 Sep 2016

there available button pastetext, it can be added to the toolbar,
I have added it in #11926 by default, so user can toggle TinyMCE paste behavior

Plugin name is paste https://www.tinymce.com/docs/plugins/paste/ and pastetext part of this plugin

avatar brianteeman
brianteeman - comment - 14 Sep 2016

New version of tinymce just released with changes to copy/paste
Will do a PR in a day or so

On 14 September 2016 at 18:21, Fedir Zinchuk notifications@github.com
wrote:

there available button pastetext, it can be added to the toolbar,
I have added it in #11926
#11926 by default, so user can
toggle TinyMCE paste behavior

Plugin name is paste https://www.tinymce.com/docs/plugins/paste/ and
pastetext part of this plugin


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12035 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8eddW4FNyZA34NhQ8RVEyteoOpXMks5qqC0jgaJpZM4J8qpl
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar dgt41
dgt41 - comment - 14 Sep 2016

@mbabker AFAIK paste plugin removes ms-word and other non-HTML compatible tags. It shouldn't alter some valid html text

avatar zero-24 zero-24 - change - 15 Sep 2016
Category External Library Plugins
avatar brianteeman
brianteeman - comment - 16 Nov 2016

From what I can tell @daveboggit is correct and it is a webkit and tinymce issue - all we have to do is to configure the Paste_webkit_styles
https://www.tinymce.com/docs/plugins/paste/#paste_webkit_styles - Forcing paste as text is a sledgehammer to crack a nut.

I took a go at adding those options to the tinymce init config but that file might as well be in greek to me - @fedik could you take a look please


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12035.

avatar dgt41
dgt41 - comment - 16 Nov 2016
avatar brianteeman
brianteeman - comment - 16 Nov 2016

ooh I hope that works - thats just two ' ' different to my attempt

On 16 November 2016 at 16:39, Dimitri Grammatikogianni <
notifications@github.com> wrote:

@brianteeman https://github.com/brianteeman after
https://github.com/joomla/joomla-cms/blob/staging/plugins/editors/tinymce/
tinymce.php#L833
add

'paste_webkit_styles' => "color font-size",


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12035 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8a7jpzQAxrwzniPMB_WilzU0WBSDks5q-zG8gaJpZM4J8qpl
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar brianteeman
brianteeman - comment - 16 Nov 2016

no joy sadly and i double checked and I had tried that combo of ' and "
before

But maybe its just me

On 16 November 2016 at 16:43, Brian Teeman brian@teeman.net wrote:

ooh I hope that works - thats just two ' ' different to my attempt

On 16 November 2016 at 16:39, Dimitri Grammatikogianni <
notifications@github.com> wrote:

@brianteeman https://github.com/brianteeman after
https://github.com/joomla/joomla-cms/blob/staging/plugins/
editors/tinymce/tinymce.php#L833
add

'paste_webkit_styles' => "color font-size",


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12035 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8a7jpzQAxrwzniPMB_WilzU0WBSDks5q-zG8gaJpZM4J8qpl
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar dgt41
dgt41 - comment - 16 Nov 2016

Really? I will look at this later on tonight

avatar brianteeman
brianteeman - comment - 16 Nov 2016

maybe it was me. maybe it was blasted persistant cache

On 16 November 2016 at 16:50, Dimitri Grammatikogianni <
notifications@github.com> wrote:

Really? I will look at this later on tonight


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12035 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8Ur-Cmy_pQvDTqTZ00Nqr0HN58L1ks5q-zRUgaJpZM4J8qpl
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar Fedik
Fedik - comment - 16 Nov 2016

@brianteeman have you enabled the paste plugin in editor options?
I think it can work only when paste plugin is enabled,
I try to check later

avatar brianteeman
brianteeman - comment - 16 Nov 2016

Thought I did but maybe not :(

Not at my PC for the rest of the night to check.

avatar brianteeman
brianteeman - comment - 16 Nov 2016

OK I was wrong - i didnt have the paste plugin enabled. And with it enabled you dont need to have the webkit fix (unless you want to keep some of the tags which I dont see a need for.

So at the end of the day this "issue" is resolved as soon as we merge (and test)#11926


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12035.

avatar zero-24
zero-24 - comment - 17 Nov 2016

Closing as we have a Patch at #11926

avatar zero-24 zero-24 - change - 17 Nov 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-11-17 07:25:17
Closed_By zero-24
avatar zero-24 zero-24 - close - 17 Nov 2016

Add a Comment

Login with GitHub to post a comment