Skip to content
Snippets Groups Projects
Commit 95c202b2 authored by Vinciane's avatar Vinciane
Browse files

FIX #9511 Correction eletronic template

parent 40964914
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@
<div class="form-group" *ngIf="template.template_type=='OFFICE_HTML'">
<mat-tab-group (selectedTabChange)="initMatTabMce()">
<mat-tab label="{{lang.electonicTemplate}}">
<mat-tab label="{{lang.electronicTemplate}}">
<div class="form-group" *ngIf="template.template_type=='OFFICE_HTML'">
<div class="col-sm-12">
<div id="html_mode" style="display: block; width:100%;">
......
......@@ -320,9 +320,12 @@ export class TemplateAdministrationComponent implements OnInit {
alert(this.lang.editModelFirst);
return;
}
if (this.template.template_type=='HTML' || this.template.template_type=='OFFICE_HTML') {
if (this.template.template_type=='HTML') {
this.template.template_content = tinymce.get('templateHtml').getContent();
}
if (this.template.template_type=='OFFICE_HTML') {
this.template.template_content = tinymce.get('templateOfficeHtml').getContent();
}
if (this.creationMode) {
if (this.template.template_style == 'uploadFile') {
this.template.template_style = '';
......
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