HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


CKEditor and IE 11 and Cut and Paste

Login / Search

 [ Join | More ]
 Add topic 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#102031 (In Topic #20004)
Avatar

Community saint

Hi,

I have some users reporting that they cannot cut and paste into a forum full editor reply box with IE 11.

Doing some research I see that CKEditor has some compatibility issues with IE 11
http://dev.ckeditor.com/ticket/10612

I believe that a fix has been released.

Will OCP be getting this, or has it already got it ?

Cheers
Ade
Back to the top
 
Posted
Rating:
#102047
Avatar

Hi,

Yuck, that's a huge assortment of problems they had. I am about to post something to upgrade CKEditor to the very latest.

However I suspect you may have an edited default themes/default/templates/JAVASCRIPT_EDITING.tpl (from one of the sponsored features you have) so I think the changes I am making to that will need carefully applying manually – could you take a backup of the version you have too, just to be sure.

I will post an archive of changes, plus a link to a git commit.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102049
Avatar

Attached is a tar of all the files to extract. This isn't a hotfix, as it is a bit more complex.

1) Delete the entire contents of data/ckeditor.

2) Decide whether you have custom non-overridden changes to some core ocPortal files.

i) If you do not (most people) simply upload all the contents of the TAR file.

ii) If you do, just upload data/ckeditor, and then manually apply changes to other files via inspection of this github diff https://github.com/chrisgraham/ocPortal/commit/33ea73e21c4aae397ef0afda82b04c860b824278
(The bulk of the ckeditor changes were put through in a separate git commit, for clarity)

Attachment
» Download: ckeditor_upgrade.tar (2 Mb, 388 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102050
Avatar

This has taken us from CKEditor 3.4 to CKEditor 4.3. We have an ocPortal addon built into CKEditor, and some bindings to CKEditor within ocPortal. The above updates all that to be compatible with 4.3. I'm pleased that this time the integration is a bit more elegant, and no direct changes to the CKEditor code are required any more.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102060

Fan in action

I'm having this problem with Firefox 26.0 also. Will apply upgrade.
Thanks!

Desert Drew
Not as dumb as I sound...
Just winded from the STEEP climb to ocPortal nirvana!
Back to the top
 
Posted
Rating:
#102062

Fan in action

Didn't fix Firefox 26.0.

3-day old installation, no add-ons, color change to default theme, no custom coding.

No cut, copy, paste in any comcode boxes sitewide using WYSIWYG editing. Works fine when WYSIWYG is disabled.

Doesn't work here either.


Desert Drew
Not as dumb as I sound...
Just winded from the STEEP climb to ocPortal nirvana!
Back to the top
 
Posted
Rating:
#102063
Avatar

Can you paste the way you're pasting on the demo on the CKEditor site?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102065
Avatar

A quick look tells me Firefox has a security policies feature which may have settings blocking WYSIWYG pastes:
Security Policies - MozillaZine Knowledge Base

It's unlikely to be an ocPortal-related issue, so you're probably best asking CKEditor users directly.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102075

Fan in action

No, I was unable to cut, copy, paste on the CKEditor site either.

The message that pops up does say that is because of browser security settings, I fiddled with them to no avail.

Apperantly, not an ocPortal issue! I will take it up on the CKEditor site and the Mozzilla Firefox site and report the fix if/when I find one here.

Thank you for your time and for a wonderful web interface!
Drew

Desert Drew
Not as dumb as I sound...
Just winded from the STEEP climb to ocPortal nirvana!
Back to the top
 
Posted
Item has a rating of 5 (Liked by Fletch)  
Rating:
#102076

Fan in action

Firefox cut/copy/paste Issue resolved. Found the answer on CKEditor forums...

"By default, JavaScript is not allowed to read or set your clipboard data for security and privacy reasons. This is because websites scripts can erase and replace what you currently have in your clipboard (data loss issue) and they can read whatever you have in your clipboard (security and privacy issue); as such, you should grant access with caution. There are, however, instances when you might want to bypass this restriction for certain sites. Rich text editors (such as implementations of Mozilla's Midas) often require access to the clipboard to use copy/paste functions. Other sites may copy useful information to the clipboard for the user to paste elsewhere."
Source: http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard

This page shows you how to manually add the permissions and it also provides a link to the AllowClipboard Helper Firefox add-on, which is what I used. You have to add each website you want to give permissions to individually and then do a restart for the permissions change to take effect. Make sure the http:// is called in the URL you want to give permissions for. When I tried just putting ocportal.com it didn't work. Apparently this has been an issue for some time.

Hope this helps others.
Desert Drew

Desert Drew
Not as dumb as I sound...
Just winded from the STEEP climb to ocPortal nirvana!
Back to the top
 
Posted
Rating:
#102124
Avatar

There's a really nasty bug in this CKEditor upgrade. CKEditor added something called Advanced Content Filter, which strips unrecognised code, including ocPortal's, or stuff that might have been pasted in.

This change fixes it:

Code

--- a/themes/default/templates/WYSIWYG_SETTINGS.tpl
+++ b/themes/default/templates/WYSIWYG_SETTINGS.tpl
@@ -50,5 +50,6 @@ var editor_settings={
        {+START,IF,{$NOT,{$VALUE_OPTION,commercial_spellchecker}}}
                disableNativeSpellChecker : false,
        {+END}
-       toolbar : toolbar
+       toolbar : toolbar,
+       allowedContent: true
 };

i.e. "allowedContent: true" turns it off


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102135

Fan in action

I did have some serious issues after installing the CKEditor update but I didn't realize that this was what caused it until it was too late.
  • I lost both side panels on all pages after saving a small right side panel edit, I mean the panels themselves, and all content, just vanished! It was a shocker to say the least.
  • I lost several function buttons in the editor itself... see image.

In a panic about the side panels (I'm an old-school HTML webmaster than refused to change with the times, until now) I uploaded my backup files with an overwrite setting. That let me rebuild my side panels but didn't fix the editors' missing functions.

And of course the original problem was with Firefox, not CKEditor. At this point I'm not sure exactly what's in my data, lang, & themes folders now (probably a jumbled mess!).

Do you think I could just delete these 3 folders from my install and start over with fresh installs from the manual install files without messing up my side panels/menus and such? Then, do the patch on the CKEditor upgrade and upload those files? If so, I don't know what file, or where, to put the code you offered as a patch.

I appreciate your time Chris.

Desert Drew
Not as dumb as I sound...
Just winded from the STEEP climb to ocPortal nirvana!
Back to the top
 
Posted
Rating:
#102138
Avatar

So it looks like 4 plugins that were core in CKEditor 3 were no longer default in CKEditor 4. Colours, Justifying, Horizontal Line, Font styles. They think that everyone should be a professional-standard web designer and write custom CSS code if they want any kind of styling, which seems a pretty extreme position if you ask me.

Updated files attached (including the .tpl change I mentioned above):

Attachment
» Download: ckeditor_upgrade.tar (3 Mb, 341 downloads so far)


I'm not sure what you mean about your data/lang/themes folder getting mixed up - I'm not sure why they would if you were simply uploading files changed here. Especially the lang folder, as nothing here changed anything in that.

As for page editing mistakes, ocPortal does keep a revision history - you can simply restore the last revision from inside ocPortal.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#102140

Fan in action

Working good now! Thank you.

Desert Drew
Not as dumb as I sound...
Just winded from the STEEP climb to ocPortal nirvana!
Back to the top
 
Posted
Rating:
#102480
Avatar

Community saint

Noticed an issue after applying these fixes (not sure if it existed before)

But when you click Bold or Italic or subscript etc buttons while not highlighting text it inserts odd text characters when using Chrome. Does not appear to happen in Firefox but have yet to check in other browsers.
Back to the top
 
Posted
Item has a rating of 5 (Liked by GuestLiked by Guest)  
Rating:
#102483
Avatar

Hmm, I can't reproduce this, but I did have this problem last night:
CKEditor 4 not working in Chrome | CKEditor.com

Perhaps the fix I posted in here also fixes this.

Actually bold is not working for me at all now, I am going to have to look at this again :S


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by GuestLiked by Guest)  
Rating:
#102484
Avatar

Okay, my issue is definitely not your issue, and I can't reproduce your issue.

2 possibilities…
  1. You haven't fully decached the browser. CKEditor Javascript has a really nasty habit of staying in the cache. A good test is to use an Incognito window, as this will bypass the browser cache.
  2. Whatever server you are on is interfering with Javascript (e.g. via Google's mod_pagespeed) and causing some kind of error in it.

A good test also is to try the demo on the CKEditor site, and see if it happens there.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by GuestLiked by Guest)  
Rating:
#102487
Avatar

Community saint

Just checked this morn. ckeditor site does not do this for me so you must be right something on our server (its still doing it as of this morning. It is a friends server hosted at home so as soon as I can get a hold of him I'll delve deeper. and report back. He is new to setting up ocPortal so not sure what he may have done.

EDIT: oh and for the record it happens incognito as well.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: