Skip to content
Snippets Groups Projects
Commit 723df026 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Bulkmail: some content editor fiexes

parent 87a3a314
No related branches found
No related tags found
No related merge requests found
...@@ -3,15 +3,20 @@ import("system.vars"); ...@@ -3,15 +3,20 @@ import("system.vars");
import("system.neon"); import("system.neon");
import("DocumentTemplate_lib"); import("DocumentTemplate_lib");
// in edit mode
if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW && if (vars.get("$sys.recordstate") != neon.OPERATINGSTATE_VIEW &&
(vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML (vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML
|| vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML)) // TODO: invisible for html as there are problems with images which are removed by the html-editor || vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML)) // TODO: invisible for html as there are problems with images which are removed by the html-editor
{ {
result.string(neon.COMPONENTSTATE_INVISIBLE); result.string(neon.COMPONENTSTATE_INVISIBLE);
} }
// keep in invisible mode to prevent a visible editor directly after save which needs much time to initiate (for eml) // in view mode disable for eml
// somehow the edit view is in view mode and the editor doesn't know anything about it and initializes itself... else if (vars.get("$sys.recordstate") == neon.OPERATINGSTATE_VIEW &&
else if (vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML || vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML) (vars.get("$context.currentTemplateType") == DocumentTemplate.types.EML
// in view mode also disable for html to work around missing image-support for the html-editor
|| vars.get("$context.currentTemplateType") == DocumentTemplate.types.HTML))
result.string(neon.COMPONENTSTATE_INVISIBLE); result.string(neon.COMPONENTSTATE_INVISIBLE);
else else
result.string(neon.COMPONENTSTATE_EDITABLE); {
\ No newline at end of file result.string(neon.COMPONENTSTATE_EDITABLE);
}
\ No newline at end of file
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
<name>af0d45a2-a96f-4031-a93d-62ac177efb43</name> <name>af0d45a2-a96f-4031-a93d-62ac177efb43</name>
<entityField>content</entityField> <entityField>content</entityField>
</entityFieldLink> </entityFieldLink>
<entityFieldLink>
<name>5ae4212f-4107-447e-af57-9ab60fb8075a</name>
<entityField>preview</entityField>
</entityFieldLink>
</fields> </fields>
</genericViewTemplate> </genericViewTemplate>
</children> </children>
......
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