Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
I want to disable image embedding in Advanced editor
xm1
New
I just want people to upload images not embed or hotlink them. Basically I want to remove the Image URL
input field below the attach image/file dropdown in Advanced Editor.
I looked inside the plugin source and found this:
public function getAllowedEditorActions() { static $allowedEditorActions = array( ... 'sep-media' => true, // separator 'emoji' => true, 'links' => true, 'images' => true, 'uploads' => true, ... ); return $allowedEditorActions; }
But setting 'images' => false
didn't do the trick.
0
Comments
if you want to cosmetically remove the option it via css.
.editor-file-image .image-input { display:none !important; }
if you want to prevent them from manually adding links that is another story, you will need to write a plugin to remove img tags from the posts.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
you could test this in a plugin not sure if it works can't test. I won't be able to help further on this.
feel free to change case and indentation.
if it doesn't work for you someone else may have a solution.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
test (same emoji twice above).
when this emoji is first characters on line thinks its a smile
:)
when its a>:)
resulting in an automatic blockquote and a smiley.
edit:
an emoji bug in 2.2 as well as on this forum
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine I do not want to get ride of images, I just want to prevent users from embedding external images.
exactly what I provided.
@xm1 sorry, but I think I am wasting my time.
with the above plugin - users can still upload images, as attachments, and inline images are gone except for emojis - solves the problem.
and the css provided - answers your other question.
Did you even try the plugin? to see what it does.
either you don't understand what you want or I don't
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.