DEV: Update ace-editor usage

AceEditor is now a glimmer component (see: https://github.com/discourse/discourse/pull/28492) and it follows the "data down, actions up" pattern.
This commit is contained in:
Jarek Radosz 2024-08-23 18:42:03 +02:00
parent 95993e7d93
commit 21a043d091
No known key found for this signature in database
GPG Key ID: 62D0FBAE5BF9B953
1 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
<section class="edit-house-ad content-body">
<h1><TextField @value={{this.buffered.name}} class="house-ad-name" /></h1>
<div class="controls">
<AceEditor @content={{this.buffered.html}} @mode="html" />
<AceEditor
@content={{this.buffered.html}}
@onChange={{fn (mut this.buffered.html)}}
@mode="html"
/>
</div>
<div class="controls">
<div class="visibility-settings">