Need to set defauts for image placement in editor.

5 posts by 3 authors in: Forums > CMS Builder
Last Post: August 21, 2013   (RSS)

By mizrahi - August 21, 2013

Another way to accomplish is utilize the Style Select dropdown. You can setup a special class for images that need to be floated left. Your client will just need to click on the image and then select an option from the dropdown menu. You will need to setup the proper css styles for the floating and margins. I use this a lot and it works well.

You will need to activate the "styleselect" option in the lib/wysiwyg.php file and also set the "theme_advanced_styles"

Note, the style will be applied to the paragraph that is wrapped around the image, not to the image itself. This means you'll need to float the paragraph, not just the image. 

By rconring - August 21, 2013

Thanks for the reply but if I could get him to click on anything I could get him to select Left and enter 10 in the hspace field.  This person, as brilliant as he is, refuses to grasp the concept of positioning, no matter how simple it is!  He is a phenomenon!

I found the answer and it is perfect for this situation since it can be overridden if other positioning is required.

The HTML for the image pop-up is in the file /cmsAdmin/3rdParty/tiny_mce/themes/advanced/image.htm.  It is a simple matter to set the default values for whatever you want.

It is fixed!

Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

By mizrahi - August 21, 2013

Glad to hear you found a solution.

By gregThomas - August 21, 2013

Hi Ron,

Glad you've got it working. Thanks for explaining the steps you went through to add the fix.

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com