Skip to content

Commit

Permalink
placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Feb 10, 2021
1 parent da17a64 commit 9f915de
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 30 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,10 @@ export default {
position: absolute;
top: 36px;
left: -130px;
display: flex;
background-color: white;
align-items: center;
}
.tiptap-button-form .form-input {
width: 180px;
width: 300px;
margin-right: 20px;
color: black;
}
Expand Down
50 changes: 25 additions & 25 deletions resources/js/components/buttons/LinkButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,38 @@
tiptap-button-form
btn
btn-default
h-auto bg-white
p-2
z-10
"
v-show="linkMenuIsActive"
@submit.prevent="setLinkUrl(commands.link, linkUrl)"
>
<input
class="
form-input
form-input-bordered
p-1
text-xs
leading-none
"
type="text"
v-model="linkUrl"
placeholder="https://"
ref="linkInput"
@keydown.esc="hideLinkMenu"
/>
<div class="flex justify-between items-center">
<input
class="
form-input
form-input-bordered
p-1
text-xs
leading-none
"
type="text"
v-model="linkUrl"
placeholder="start external links with https:// or http://"
ref="linkInput"
@keydown.esc="hideLinkMenu"
/>

<button
class="btn is-close"
@click="setLinkUrl(commands.link, null)"
type="button"
>
<font-awesome-icon :icon="['fas', 'times-circle']">
</font-awesome-icon>
</button>
<button
class="btn is-close"
@click="setLinkUrl(commands.link, null)"
type="button"
>
<font-awesome-icon :icon="['fas', 'times-circle']">
</font-awesome-icon>
</button>
</div>
</form>

<button
Expand Down Expand Up @@ -105,6 +108,3 @@ export default {
},
}
</script>



0 comments on commit 9f915de

Please sign in to comment.