CKEditor - cannot view source using Edge browser

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/8/2015 5:11:43 AM
Gravatar
Total Posts 503
feet planted firmly on the ground

CKEditor - cannot view source using Edge browser

Not a mojoPortal bug at all, but I'm posting a note here in case anyone finds it and thinks it is.

The new Edge browser in Windows 10 fails to switch to Source view in a CKEditor, and may lose previous unsaved edits.

The issue has been reported here https://connect.microsoft.com/IE/feedback/details/1577449/edge-browser-crashes-when-using-ckeditor-toggling-from-wysiwyg-to-source-mode ​and here http://dev.ckeditor.com/ticket/13609

So until that's fixed, switch mojoPortal site settings to use TinyMCE, or use a different browser for editing!

8/8/2015 5:41:39 AM
Gravatar
Total Posts 55

Re: CKEditor - cannot view source using Edge browser

I was just about to post the same problem - for the meantime I'm using Internet Explorer, rather than Edge, while editing my pages.

10/4/2015 10:05:30 AM
Gravatar
Total Posts 503
feet planted firmly on the ground

Re: CKEditor - cannot view source using Edge browser

Just noting that this issue is marked as fixed by the CKEditor team, and the fix was released in either 4.5.2 or 4.5.3.

Hope we can see this in mojo soon.

http://ckeditor.com/blog/category/releases

10/4/2015 1:31:08 PM
Gravatar
Total Posts 18444

Re: CKEditor - cannot view source using Edge browser

ckeditor is not part of mojoportal, it can be installed or updated independently of mojoportal.

basic steps

  • download the latest version along with whatever plugins you like to use, usually I download it with full default plugins but there are usually a few more needed that I have to download separately. often there are new versions of plugins that go with new versions of ckeditor but not always, sometimes you can just copy any missing plugins from the previous version
     
  • put the new ckeditor folder below ~/ClientScript/ and rename it as ckeditorxxx where xxx represents the version, this is just so you remember which version is installed.
     
  • you will definitely want the mojofiledrop plugin so copy that from the plugins folder in your current site installation and put it in the plugins folder for the new version of ckeditor
     
  • probably want to compare the plugins folder in the new one vs the previous version you were using and download the newest version of any plugins that are missing in the new folder or copy them from the previous version and maybe they still work.
     
  • in web.config or user.onfig update the setting to point to your newly created folder:
    <add key="CKEditor:BasePath" value="~/ClientScript/ckeditorxxx/" /> 
     
  • toolbars and plugins are also configured in the file /ClientScript/ckeditor-mojoconfig.js
    you can easily add or remove plugins by copying that file with a new name and then point to your copy by changing this setting:<add key="CKEditor:ConfigPath" value="~/ClientScript/ckeditor-mojoconfig.js" />
     
  • you may need to use web browser debug tools such as the javascript console to look for any errors. For example if the config file toolbars use plugins that don't exist on disk it may cause the editor to fail to load or it may log an error in the console that will give you a clue about missing plugins or what is wrong in the configuration.
10/4/2015 1:53:27 PM
Gravatar
Total Posts 503
feet planted firmly on the ground

Re: CKEditor - cannot view source using Edge browser

Excellent, looks simple - I shall give that a go and report back with any issues/tips.

Thanks Joe

10/4/2015 3:00:15 PM
Gravatar
Total Posts 503
feet planted firmly on the ground

Re: CKEditor - cannot view source using Edge browser

It has worked fine, these were the steps:

  1. Downloaded the "Full Package" from http://ckeditor.com/download
  2. Unzipped, and renamed the subfolder "ckeditor" to "ckeditor453"
  3. Copied the "mojofiledrop" folder from the \ckeditor446\plugins folder in my existing site into the plugins folder of the new version.
  4. The following plugins were not included in the full download, but were needed so I included them into my new plugins folder:
    1. dialogue  http://ckeditor.com/addon/dialogui
    2. lineutils http://ckeditor.com/addon/lineutils
    3. oembed http://ckeditor.com/addon/oembed
    4. widget http://ckeditor.com/addon/widget
  5. Added this setting in user.config: <add key="CKEditor:BasePath" value="~/ClientScript/ckeditor453/" /> and touched web.config.

Yay it works, and switching to "source" view now works in the new Edge browser. I have not fully tested the editor, but the main tools work.

To save others some clicks, I've uploaded the final \ckeditor453 folder here (no guarantees mind!)  http://flowerbunch.org/data/sites/1/media/misc/ckeditor453.zip

You should be able to unzip that directly into \ClientScript then set the BasePath and off you go (noting that CKEditor upgrades sometimes cause issues, and the older your existing version the more likely this is; I was upgrading from CKEditor 4.4.6). Any previously installed extra plugins will need to be added.

You must sign in to post in the forums. This thread is closed to new posts.