CKEditor - Image Plugin

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

6/12/2017 12:14:42 PM
Gravatar
Total Posts 27

CKEditor - Image Plugin

Help!

I installed version 2.5.0 of Mojoportal, and I am very satisfied with this new version. I only have a problem with the HTML Content Editor CKEditor. Version 2.5 includes CKEditor version 4.6.2. Until CKEditor version 4.4.7 the image plugin showed the advanced properties tile. Starting with version 4.6.0 and 4.6.2 this tile in disapperared.

I can set the advanced properties of the images in-line, but my users (and I) prefer to define a class for the images and simply add the class while uploading the image files.

Is there a "magic" setting to apply in order to use the previous image plugin (with the new version)? Or a workaround?

Thanks in advance.

Mari

 

 

6/12/2017 1:08:05 PM
Gravatar
Total Posts 182
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: CKEditor - Image Plugin

Hi Mari,

There is, actually, a "magic" setting that lets you use the previous image plugin. mojoPortal 2.5 ships with the old image plugin still included, so you can just disable the new "image 2" plugin and the old one will automagically get re-enabled.

Steps:

  1. Follow the instructions on this page, under "CKeditor Configuration", to create and enable your own "ckeditor-mariconfig.js" file.
  2. Open the new file and find config.extraPlugins = 'oembed';, on line 7.
  3. Create a new line underneath this and paste this: config.removePlugins = 'image2';
  4. "Touch" your web.config (open it, type in a space on an empty line, then save it) to ensure the changes to your user.config are noticed.
  5. Visit the site you're editing, go to a page with CKEditor on it, and clear your browser cache (ctrl + shift + r).
  6. You should now see the old image plugin in use.

Hope this helps!

6/12/2017 5:55:27 PM
Gravatar
Total Posts 27

Re: CKEditor - Image Plugin

It worked! ;-)

Thanks!!!

Mari

 

 

7/6/2017 9:46:41 PM
Gravatar
Total Posts 182

Re: CKEditor - Image Plugin

Thanks for this. Much better. The image editor options are absolutely critical for end users. They need to add padding and add classes, adjust size, etc in a GUI interface. I also prefer it to searching through the code and manually editing!

Would be a good change for future versions of Mojo.