UNPKG

processmaker-builder

Version:

The gulp task runner for ProcessMaker building

89 lines (85 loc) 2.85 kB
<?xml version="1.0" encoding="UTF-8"?> <dynaForm name="dynaforms_HtmlEditor" type="xmlform" width="98%" labelWidth="1px" border="0" enabletemplate="1"> <URL type="phpvariable"/> <DYN_UID type="phpvariable"/> <PME_HTML_ENABLETEMPLATE type="checkbox" value="1" defaultvalue="0" labelOnRight="0"> <en><![CDATA[Enable HTML Editing]]></en> </PME_HTML_ENABLETEMPLATE> <PME_RESTORE_HTML type="button" onclick="dynaformEditor.restoreHTML(); this.blur();"> <en><![CDATA[Restore Original HTML]]></en> </PME_RESTORE_HTML> <!--<PME_REFRESH_VIEW type="button" onclick="html2_html(); this.blur();"> <en>Refresh View</en> </PME_REFRESH_VIEW>--> <!-- HTML type="html" width="100%" height="300px" toolbarSet="toolbar2lines"> <en>HTML View</en> </HTML --> <HTML type="wysiwyg_editor" editorType="DYNAFORM_TEMPLATE" dynUID="@@DYN_UID" width="100%" height="300px"> <en><![CDATA[HTML View]]></en> </HTML> <!-- HTML2 type="textarea" cols="120" rows="16" style="width:100%;" className="htmleditor"> <en>HTML Code</en> </HTML2 --> <PME_SYNCH_JS type="javascript"><![CDATA[ /*getField("HTML").onchange=function() { html_html2(); } function html_html2() { if (window._editorHTML.doc.forms.length>0) { getField("HTML2").value=window._editorHTML.doc.forms[0].innerHTML; } else { getField("HTML2").value=getField("HTML").value; } } function html2_html() { if (window._editorHTML.doc.forms.length>0) { window._editorHTML.doc.forms[0].innerHTML=getField("HTML2").value; getField("HTML").value=getField("HTML2").value; } else { window._editorHTML.setHTML(getField("HTML2").value); getField("HTML").value=getField("HTML2").value; } }*/ var restore_html = function() { alert('restore_html'); }; //html_html2(); ]]></PME_SYNCH_JS> <PME_RESIZE_JS type="javascript"><![CDATA[ function resizeHTMLEditor(){ try{ getField('HTML','dynaforms_HtmlEditor').style.height= document.getElementById('dynaformEditor[4]').parentNode.clientHeight-32; }catch(e){ } } //resizeHTMLEditor(); getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").onclick=function() { /*getField("ENABLETEMPLATE","dynaforms_Properties").checked=this.checked; dynaformEditor.saveProperties();*/ /*if (getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").checked == true) { new leimnud.module.app.confirm().make( { label: "@G::LoadTranslation(ID_MSG_ENABLE_HTML_EDITING)", size:{ w: 350, h: 150 }, action: function() { }, cancel: function () { getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").checked = false; } }); */ dynaformEditor.setEnableTemplate(this.checked); // } } ]]></PME_RESIZE_JS> </dynaForm>