tinymce image spacing?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 7, 2017   (RSS)

By willydoit - March 3, 2017

Hi all,

I have an issue with the wysiwyg element in that when an image is uploaded and inserted there isnt any facility to apply any padding, or if there is I cannot see it. I am assuming that the facility is or should be there so clients can easily insert images without it butting right up to the text.  If someone could advise me why it isnt showing and how to add the facility I would appreciate it.

I am using CMSB v3.07 (Build 2116)

Thanks in advance.

By ross - March 6, 2017

Hi there.

Thanks for posting.

There is an option to add an "advanced" tab to the image button popup window.

Here's a quick walk through on how to add that. I concider this to be medium difficulty depending on how comfortable you are with working in settings of TinyMCE

1. Download and make a copy of /lib/wysiwyg.php. Call it: wysiwyg_custom.php

2. Open wysiwyg_custom.php in a text editor and search for 

// Load Plugins - list of available plugins can be found here: https://www.tinymce.com/docs/plugins/
plugins: "contextmenu,table,fullscreen,paste,media,lists,charmap,textcolor,link,anchor,hr,paste,image,code",

3. Right below that, add the following:

// Load Plugins - list of available plugins can be found here: https://www.tinymce.com/docs/plugins/
plugins: "contextmenu,table,fullscreen,paste,media,lists,charmap,textcolor,link,anchor,hr,paste,image,code",

// advanced image tab
image_advtab: true,

4. Save and upload /lib/wysiwyg_custom.php to your server.

5. Log into CMS Builder and when you use the image tool in your WYSIWYG editor,. there will be an "advanced" tab that lets you set the horizontal and vertical width.

NOTE: you may need to clear your browser cache before seeing the new tab.

Give this a shot and let me know how you make out.


Ross Fairbairn - Consulting

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

By willydoit - March 7, 2017

Thanks Ross,

all sorted. Thank you.