1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Allow rich rext for Site Message and Space Desc

Closes #291

Style both site-wide message and per space descriptions using the fully-featured rich text editor.
This commit is contained in:
HarveyKandola 2019-11-15 12:41:08 +00:00
parent 8970a21b58
commit 5c1ad25dc9
8 changed files with 156 additions and 10 deletions

View file

@ -6,7 +6,9 @@
</div>
<div class="form-group">
<label id="siteMessage">Site Message</label>
{{textarea id="siteMessage" rows="3" value=model.general.message class=(if hasMessageInputError "form-control is-invalid" "form-control")}}
<div id="editor-message" class="wysiwyg wysiwyg-editor">
{{{model.general.message}}}
</div>
<small class="form-text text-muted">Provide short message explaining this Documize instance</small>
</div>
<div class="form-group">
@ -59,4 +61,4 @@
</div>
{{ui/ui-button color=constants.Color.Green light=true icon=constants.Icon.Settings label=constants.Label.Save onClick=(action "save")}}
</div>
</div>

View file

@ -11,7 +11,9 @@
<div class="form-group">
<label>Description</label>
{{focus-input id="space-desc" type="text" value=spaceDesc class="form-control" placeholder="Space description" autocomplete="off"}}
<div id="space-desc" class="wysiwyg wysiwyg-editor">
{{{spaceDesc}}}
</div>
</div>
<div class="form-group">

View file

@ -1 +1 @@
{{desc}}
{{{desc}}}

View file

@ -1 +1 @@
{{title}}
{{title}}

View file

@ -27,7 +27,7 @@
{{space.name}}
</div>
{{#if (not-eq viewDensity "3")}}
<div class="desc">{{space.desc}}&nbsp;</div>
<div class="desc">{{{space.desc}}}</div>
{{/if}}
{{#if (eq viewDensity "1")}}
<div class="meta">