Skip to content
Snippets Groups Projects
Commit dd21c18f authored by m.wachsmuth's avatar m.wachsmuth
Browse files

html editor for doc templates added (only Text Modular)

parent c44317f4
No related branches found
No related tags found
No related merge requests found
......@@ -358,6 +358,8 @@
<title>Edit HTML file</title>
<onActionProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/htmleditor/onActionProcess.js</onActionProcess>
<iconId>NEON:PENCIL</iconId>
<state>INVISIBLE</state>
<stateProcess>%aditoprj%/entity/DocumentTemplate_entity/entityfields/htmleditor/stateProcess.js</stateProcess>
</entityActionField>
</entityFields>
<recordContainers>
......
import("KeywordRegistry_basic");
import("system.result");
import("system.vars");
import("DocumentTemplate_lib");
import("system.neon");
var template = DocumentTemplateUtils.getTemplate(vars.get("$field.DOCUMENTTEMPLATEID"), false)
if(template.type == DocumentTemplate.types.HTML && vars.get("$field.KIND") == $KeywordRegistry.documentTemplateType$textModular())
result.string(neon.COMPONENTSTATE_EDITABLE);
import("system.logging");
import("Workflow_lib");
import("DocumentTemplate_lib");
import("system.vars");
......@@ -10,4 +11,7 @@ var rowId = vars.get("$local.uid");
DocumentTemplateUtils.updateTemplateData(rowId, upload, rowdata["DOCUMENTTEMPLATE.KIND"], content, rowdata["DOCUMENTTEMPLATE.CLASSIFICATION"], rowdata["DOCUMENTTEMPLATE.NAME"]);
if(vars.get("$field.HtmlEdit") != null)
DocumentTemplateUtils.updateTemplateData(rowId, upload, rowdata["DOCUMENTTEMPLATE.KIND"], vars.get("$field.HtmlEdit"), rowdata["DOCUMENTTEMPLATE.CLASSIFICATION"], rowdata["DOCUMENTTEMPLATE.NAME"])
WorkflowSignalSender.updated();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment