tinymce - Is it possible to disable the image alignment options in the post editor?

admin2025-01-07  7

By default, when you insert an image into a post, it has some image alignment options (see below).

In my theme I want every image to be full width. Of course, it's easy for me to change the front-end display of the images. But--in terms of usability--I don't want to cause the user to think that they are able to change the alignment. Is it possible to disable those alignment options?

By default, when you insert an image into a post, it has some image alignment options (see below).

In my theme I want every image to be full width. Of course, it's easy for me to change the front-end display of the images. But--in terms of usability--I don't want to cause the user to think that they are able to change the alignment. Is it possible to disable those alignment options?

Share Improve this question asked Dec 27, 2016 at 21:03 PetePete 3271 gold badge5 silver badges20 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You could always disable them through css.

E.g.:

.mce-i-dashicon.dashicons-align-left {
    display: none;
}
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736256338a353.html

最新回复(0)