Skip to content

Commit

Permalink
Merge pull request #16 from mostafaznv/dev
Browse files Browse the repository at this point in the history
Add help text to editor field #14
  • Loading branch information
mostafaznv authored Jun 3, 2022
2 parents 5673a95 + 3b479cf commit 0b4d0be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions resources/js/components/editor-field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<template #field>
<textarea ref="editor" class="hidden" :id="field.attribute" :class="errorClasses" :value="value" />

<p v-if="field.helpText" v-html="field.helpText" class="help-text help-text mt-2" />

<media-browser @select="$options[editorName].execute('imageBrowser', $event)" type="image" :field-key="$options[editorUUID] + '-image'" :multiple="true" />
<media-browser @select="$options[editorName].execute('videoBrowser', $event)" type="video" :field-key="$options[editorUUID] + '-video'" :multiple="true" :has-larupload-trait="field.videoHasLaruploadTrait" />
<snippet-browser :field-key="$options[editorUUID]" :snippets="field.snippetBrowser" />
Expand Down

0 comments on commit 0b4d0be

Please sign in to comment.