Attempting to use custom code in the Smart Editor widget, so that save button has an onclick that closes the editor entirely (instead of bringing it back to template) after save and would greatly appreciate a little direction on where it might go (not terribly familiar with JS), I am working in the Smart Editor Widget.js file and tried pasting in
PanelManager.getInstance().closePanel(widgetid + ‘_panel’);<SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
I included the Define and the Function, but it inst working where I've been placing it. Have I botched the syntax?
Does anyone have a sample I could refer to?