Hi Rich, is this for free version of USP or USP Pro? And are you referring to the content textarea that is displayed on the submit form?
Hello Jeff: This is about the free version. I am referring to a menu item in the editor toolbar.
here:
<div id=”mceu_17-body” class=”mce-container-body mce-flow-layout”><div id=”mceu_18″ class=”mce-container mce-flow-layout-item mce-first mce-last mce-btn-group” role=”group”><div id=”mceu_18-body”><div id=”mceu_0″ class=”mce-widget mce-btn mce-first” tabindex=”-1″ aria-labelledby=”mceu_0″ role=”button” aria-label=”Bold”><button role=”presentation” type=”button” tabindex=”-1″><i class=”mce-ico mce-i-bold”></i></button></div><div id=”mceu_1″ class=”mce-widget mce-btn” tabindex=”-1″ aria-labelledby=”mceu_1″ role=”button” aria-label=”Italic”><button role=”presentation” type=”button” tabindex=”-1″><i class=”mce-ico mce-i-italic”></i></button></div>
…and the list goes on…
I need to remove one of the div’s as it allows for the insertion of some potentially harmful inputs. The menu item (div) on the toolbar is being picked up from the theme and is needed on the back end so I couldn’t disable it that way.
What I have done today is edit submission-form.php settings array to teeny => true which has taken care of the issue. However, since this doesn’t seem to be coded with a user selectable interface it will be overwritten with an update.
Is this how you would have handled the situation?
Thanks,
Rich
Sort of..
Basically the content editor is provided wholesale by WordPress, so you can either disable it entirely via the plugin settings, or create a custom submission form as explained in the plugin documentation (and then modify the editor toolbar as desired). So the change you made should be fine, but I would go with a custom form to ensure the changes aren’t overwritten with updates, as you surmise.
Thanks Jeff, perfect. I appreciate the feedback and will move toward the custom form when I get some free time…I’ll keep what I have as a stop gap. Be well, Rich