28 lines
886 B
TypeScript
28 lines
886 B
TypeScript
|
import {Component} from '@angular/core';
|
||
|
import {PluginBaseFormComponent, PluginEditEvent} from "../../utils/base-plugin.form.component";
|
||
|
import {HTMLSection} from "./plugin-html-section.component";
|
||
|
|
||
|
@Component({
|
||
|
selector: 'plugin-html-section-form',
|
||
|
template: `
|
||
|
<div *ngIf="pluginObject" class="uk-padding-xsmall">
|
||
|
<plugin-field-edit [value]="pluginObject.title"
|
||
|
type="text" field="title" (changed)="valueChanged($event)"></plugin-field-edit>
|
||
|
|
||
|
<div class="uk-margin-top">
|
||
|
<plugin-field-edit [value]="pluginObject.html" [switchToHTMLEditor]="true"
|
||
|
type="textarea" field="html" (changed)="valueChanged($event)"></plugin-field-edit>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
`,
|
||
|
|
||
|
|
||
|
})
|
||
|
export class PluginHtmlSectionFormComponent extends PluginBaseFormComponent<HTMLSection> {
|
||
|
constructor() {
|
||
|
super()
|
||
|
|
||
|
}
|
||
|
}
|