Skip to content

Commit e093609

Browse files
authored
Merge pull request #32 from netgine/repeatable
Make editor id unique for nova repeater
2 parents e4169e3 + 5055030 commit e093609

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

dist/js/field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/field.js.LICENSE.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
/*!
2+
* The buffer module from node.js, for the browser.
3+
*
4+
* @author Feross Aboukhadijeh <http://feross.org>
5+
* @license MIT
6+
*/
7+
18
/*!
29
* vuex v4.1.0
310
* (c) 2022 Evan You
411
* @license MIT
512
*/
13+
14+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

resources/js/components/FormField.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:show-help-text="showHelpText">
44
<template #field>
55
<editor
6-
:id="currentField.attribute"
6+
:id="uuid(currentField.attribute)"
77
v-model="value"
88
:api-key="currentField.options.apiKey"
99
:cloud-channel="currentField.options.cloudChannel ?? 6"
@@ -21,6 +21,7 @@
2121
<script>
2222
import { DependentFormField, HandlesValidationErrors } from 'laravel-nova'
2323
import Editor from '@tinymce/tinymce-vue'
24+
import { uuid } from '@tinymce/tinymce-vue/lib/es2015/main/ts/Utils'
2425
2526
export default {
2627
mixins: [DependentFormField, HandlesValidationErrors],
@@ -37,6 +38,7 @@ export default {
3738
},
3839
3940
methods: {
41+
uuid,
4042
setupProtectContent () {
4143
if (this.field.options.init.protect) {
4244
this.field.options.init.protect = this.field.options.init.protect.map((regex) => {

0 commit comments

Comments
 (0)