'#', 'method' => 'POST', 'id' => 'form-config-widget', 'onsubmit' => 'return false;', 'class' => 'modal-dashboard', 'enctype' => 'multipart/form-data', 'extra' => 'novalidate', ]; $js = 'tinymce.init({ selector: "#textarea_text", plugins: "preview, searchreplace, table, nonbreaking, link, image", promotion: false, branding: false, setup: function (editor) { editor.on("change", function () { tinymce.triggerSave(); }) } });'; HTML::printForm( [ 'form' => $form, 'blocks' => $blocks, 'inputs' => $htmlInputs, 'js' => $js, ] ); echo $output;