Skip to content

Commit

Permalink
feat: add classes for live editing (#258)
Browse files Browse the repository at this point in the history
* Add classes for live editing

* feat(lib): add line between selectors

* feat(lib): change author to is-editing
  • Loading branch information
alvarosabu authored and benjamincanac committed Jul 27, 2020
1 parent ccfcea0 commit ebc6123
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/templates/nuxt-content.dev.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<template>
<div class="nuxt-content-container">
<div :class="['nuxt-content-container', { 'is-editing': isEditing}]">
<textarea
v-show="isEditing"
v-model="file"
ref="textarea"
class="nuxt-content-editor"
@keyup.stop="onType"
@blur="toggleEdit"
/>
Expand Down Expand Up @@ -91,7 +92,8 @@ export default {
.nuxt-content-container {
position: relative;
}
.nuxt-content-container textarea {
.nuxt-content-editor {
width: 100%;
padding: 8px;
}
Expand Down

0 comments on commit ebc6123

Please sign in to comment.