This topic is locked
[SOLVED]

Diasable Paste Plugin for a specific field

4/30/2026 16:56:46
TinyMCE Editor plugin support forum
D
digital ant author

I need to disable Tiny MCE's paste image / image upload function for a specific field. This field is encrypted and I do not want any instability due to the size of pasted/uploaded images and the text content. Is there any way to disable this for a specific page? I know we can disable features globally.

Sergey Kornilov admin 4/30/2026

Check this:
https://xlinesoft.com/phprunner/docs/javascript_create_tinymce.htm

You have access to table and field names there.

D
digital ant author 5/1/2026

Thank you, Sergey! I don't know how I missed this doc!

BTW, I tried many variations of settings, including pre_process and post_process paste functions - and they worked; However, if the field was marked as a required field, the validation would fail.

In the end, I went with a simple set of settings, limiting the plugins loaded and the elements allowed in the edit box:

settings.plugins = ['advlist', 'autolink', 'link', 'lists', 'charmap', 'code', 'table'];
settings.invalid_elements= 'img';
settings.paste_data_images = false; /this is for old versions