Download & Extend

TinyMCE - Need to stop user's ability to resize images in editor

Project:TinyMCE
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi there,

Great module, thank you! :)

I need a way to prevent the user's ability to resize images within the editor (i.e. after the user has chosen/uploaded their image through IMCE and "sent it to TinyMCE).

I have found a (TinyMCE plugin) module on the the TinyMCE site (http://code.google.com/p/tinymce-plugin-advimagescale/), have tired to follow the instructions but to no avail unfortunately (I'm no expert).

Is there a Drupal way of preventing this feature? Or can anyone help me implement the aforementioned module? Any help would be greatly appreciated.

Many thanks
Jonathan

Comments

#1

Hi, I know this is a bit of a late response but it seems like you can do this with IMCE and TinyMCE right out of the box. In the IMCE profile you have selected for the your user role, make sure that the checkbox for resizing images under the "Directories" section isn't selected.

Note: My setup that I tested this on uses the WYSIWYG API. I'm not sure if this would make a difference, but I thought it would be good to mention.

Hope this helps!

#2

Drupal Jedi, thank you. I've checked the settings and it mirrors your advice, however, the user can still skew images via the WYSIWYG editor by pulling any of the transformation boxes around the perimeter of the image.

#3

Did you check it when you were logged out? With my setup, everything is functioning correctly. (Admins can skew images via the editor, but anonymous users cannot.) Could you tell me your exact setup? I could try to duplicate it and debug from there.

nobody click here