@afeefa/vue-app 0.0.102 → 0.0.105

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.102
1
+ 0.0.105
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.102",
3
+ "version": "0.0.105",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -170,4 +170,7 @@ export default class AContextMenu extends Mixins(UsesPositionServiceMixin) {
170
170
  margin: .3rem 0;
171
171
  }
172
172
  }
173
+ .contextButton {
174
+ cursor: pointer;
175
+ }
173
176
  </style>
@@ -113,6 +113,15 @@
113
113
  :editor="editor"
114
114
  :class="['a-rich-text-editor', {editorFocus}]"
115
115
  />
116
+ <v-text-field
117
+ v-show="false"
118
+ ref="input"
119
+ v-model="currentValueStripped"
120
+ :label="label"
121
+ :rules="validationRules"
122
+ v-bind="$attrs"
123
+ v-on="$listeners"
124
+ />
116
125
  </div>
117
126
  </template>
118
127
 
@@ -137,7 +146,7 @@ import { Color } from '@tiptap/extension-color'
137
146
  import Highlight from '@tiptap/extension-highlight'
138
147
 
139
148
  @Component({
140
- props: ['value', 'validator', 'focus'],
149
+ props: ['value', 'validator', 'focus', 'label'],
141
150
  components: {
142
151
  EditorContent
143
152
  }
@@ -167,9 +176,6 @@ export default class ARichTextArea extends Vue {
167
176
  mounted () {
168
177
  this.editorFocus = !!this.focus
169
178
 
170
- if (this.validator) {
171
- this.$refs.input.validate(true)
172
- }
173
179
 
174
180
  this.editor = new Editor({
175
181
  content: this.internalValue,
@@ -230,6 +236,12 @@ export default class ARichTextArea extends Vue {
230
236
  }
231
237
  return this.validator.getParams().max || false
232
238
  }
239
+
240
+ get currentValueStripped () {
241
+ if (this.editor) {
242
+ return this.editor.state.doc.textContent
243
+ }
244
+ }
233
245
  }
234
246
  </script>
235
247
 
@@ -2,6 +2,8 @@
2
2
  <a-rich-text-area
3
3
  v-model="model[name]"
4
4
  v-bind="$attrs"
5
+ :validator="validator"
6
+ :label="label"
5
7
  v-on="$listeners"
6
8
  >
7
9
  <template #buttons>
@@ -94,8 +94,6 @@ export default class FlyingContextContainer extends Vue {
94
94
  background: white;
95
95
  transition: right .2s;
96
96
  padding: 2rem;
97
- overflow-x: hidden;
98
- overflow-y: scroll;
99
97
 
100
98
  &:not(.visible) {
101
99
  right: -80vw;