Mojoportal 2.5.0.0 CKEditor

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
8/29/2017 8:55:58 AM
Gravatar
Total Posts 70

Mojoportal 2.5.0.0 CKEditor

Does anyone know if  mojoportal 2.5.0.0  CKEditor 4.6.2 supports the table column resizing plugin?

8/30/2017 11:28:18 AM
Gravatar
Total Posts 216
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: Mojoportal 2.5.0.0 CKEditor

Hello,

Is this the plugin you're talking about? https://ckeditor.com/addon/tableresize

If so, it says that it works with CKEditor 4.6.2, so you should be able to make it work with mojoPortal 2.5.

If you run into any problems getting it to work post them here, can't ever promise success with plugins but I'll definitely try to help.

Thanks,
-Isaac

8/30/2017 5:08:24 PM
Gravatar
Total Posts 70

Re: Mojoportal 2.5.0.0 CKEditor

Going In !!  I will let you know how it goes..

8/30/2017 5:21:28 PM
Gravatar
Total Posts 70

Re: Mojoportal 2.5.0.0 CKEditor

So right out of the box I downloaded the tableresizer plugin version 4.6.2 from the website

extracted it to the ClientScript/ckeditor462/plugins folder.

modified the build-config.js to add the pluging

'table' : 1,
        'tableresize': 1,
        'tabletools': 1,       

modified the ckeditor-mojoconfig.js to add the extraplugin

 

CKEDITOR.editorConfig = function(config) {
    config.entities = false;
    config.scayt_autoStartup = false;
    config.disableNativeSpellChecker = false;
    config.justifyClasses = ['text-left', 'text-center', 'text-right', 'text-justify'];
    config.indentClasses = ['text-indent-1', 'text-indent-2', 'text-indent-3'];
    config.extraPlugins = 'oembed', 'tableresize';
    config.oembed_maxWidth = '560';
    config.oembed_maxHeight = '315';
    config.allowedContent = true;

nothing doing yet.. I will keep working..

8/31/2017 4:12:41 PM
Gravatar
Total Posts 70

Re: Mojoportal 2.5.0.0 CKEditor

This is still not working even after I modified the ckeditor-mojoconfig.js file. 

I have other pressing issues and will come back to this next week.. 

9/4/2017 5:10:12 PM
Gravatar
Total Posts 70

Re: Mojoportal 2.5.0.0 CKEditor

I was never able to get this working. I am moving on for now, but this would be a great enhancement feature going forward for less experienced content editors..

9/6/2017 2:54:48 PM
Gravatar
Total Posts 216
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: Mojoportal 2.5.0.0 CKEditor

Hey,

I was able to make the plugin work with the following process:

  1. Download the version of table resize for CKEditor 4.6.2 (direct link here).
    Note: Don't worry about dependencies - all of the dependencies for table resize are included with mojoPortal by default.
  2. Extract the contents of the downloaded zip to wwwroot/ClientScript/ckeditor462/plugins in your mojoPortal site.
  3. Open your user.config file and add the following key:  <add key="CKEditor:ConfigPath" value="~/ClientScript/ckeditor-customconfig.js" />
  4. Copy the "ckeditor-mojoconfig.js" file in wwwroot/ClientScript and rename the copy to "ckeditor-customconfig.js". This is to prevent updating mojoPortal from removing your configuration.
  5. Open your "ckeditor-customconfig.js" file and edit line 7 to read as the following: config.extraPlugins = 'oembed,tableresize';
    Note: Do not put spaces between the extra plugin names and the commas that separate them.
  6. Go back to your mojoPortal site and clear your browser cache (ctrl + shift + r in most browsers).

Add a table to an editor instance and you should be able to drag to resize the columns now.

You should know that this plugin is adding inline-style with specific pixel widths added to each column, which will cause your table to stop being responsively sized - this is not ideal in a world where most internet browsing happens on phones. We had considered adding the plugin to mojo by default because it is nice for resizing tables, but because of this set-width we've opted not to, we don't want to include anything in mojoPortal core that will make designing content for mobile any harder than it already is.

Hope this helps!

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