Copy a text in TinyMCE which is NOT formatted.
Paste it below.
If you copy non-formatted text it should paste non formatted text
A span is wrapped around the pasted text. <span style="font-size:12.16px">text</span>
in my case
Joomla 3.6.2
Status | New | ⇒ | Confirmed |
@designbengel try this:
The paste plugin SHOULD BE ENABLED BY DEFAULT on EVERY tinyMCE instance. This 2016!!!
Labels |
Added:
?
|
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.
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)
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
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 behaviorPlugin 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/
Category | ⇒ | External Library Plugins |
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
@brianteeman after https://github.com/joomla/joomla-cms/blob/staging/plugins/editors/tinymce/tinymce.php#L833
add
'paste_webkit_styles' => "color font-size",
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/
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/
Really? I will look at this later on tonight
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/
@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
Thought I did but maybe not :(
Not at my PC for the rest of the night to check.
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
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-11-17 07:25:17 |
Closed_By | ⇒ | zero-24 |
I can confirm this
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12035.