feat(content-management): use rich HTML editor for static page content
This commit is contained in:
@@ -42,7 +42,10 @@
|
||||
</label>
|
||||
<label class="full">
|
||||
<span>{{ 'builder.htmlPreview' | translate }} {{ locale }}</span>
|
||||
<textarea rows="6" [ngModel]="page.translations[locale]?.html || ''" (ngModelChange)="updateTranslation(page.id, locale, 'html', $event)"></textarea>
|
||||
<app-marketplace-html-editor
|
||||
[html]="page.translations[locale]?.html || ''"
|
||||
(htmlChange)="updateTranslation(page.id, locale, 'html', $event)"
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -4,11 +4,12 @@ import { ProjectEditorFacade } from '../../project-editor/facade/project-editor.
|
||||
import { ContentManagementFacade } from '../facade/content-management.facade';
|
||||
import { ContentPage } from '../models/content-page.model';
|
||||
import { TranslatePipe } from '../../../i18n/translate.pipe';
|
||||
import { MarketplaceHtmlEditorComponent } from '../../project-editor/components/html-editor/marketplace-html-editor.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-static-pages-editor',
|
||||
standalone: true,
|
||||
imports: [FormsModule, TranslatePipe],
|
||||
imports: [FormsModule, TranslatePipe, MarketplaceHtmlEditorComponent],
|
||||
templateUrl: './static-pages-editor.component.html',
|
||||
styleUrls: ['../../project-editor/sections/section.shared.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
|
||||
Reference in New Issue
Block a user