Sharepoint: Script Editor webpart works correctly only in editor mode (2 Solutions!!)

Published --