File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,28 @@ import { readonly } from '#root/src/vendor/plugins/readonly'
4
4
import { useVue } from ' #shared/composables'
5
5
6
6
const props = defineProps <{ createdAt: Date , role: string , text: string }>()
7
+
7
8
const { copy } = useClipboard ()
8
9
const { addToast } = useToasts ()
9
10
const isHuman = computed (() => props .role === ' human' )
10
11
const isAssistant = computed (() => props .role === ' assistant' )
11
12
const name = computed (() => isHuman .value ? ' You' : ' Assistant' )
12
13
const { isMounted } = useVue ()
14
+
15
+ const isEditable = typeof window !== ' undefined' && window ?.navigator .userAgent .match (/ firefox/ i )
16
+
13
17
const options = {
14
18
interface: {
15
19
attribution: false ,
16
- autocomplete: true ,
20
+ autocomplete: false ,
17
21
images: false ,
18
22
lists: false ,
19
23
readonly: true ,
20
24
spellcheck: false ,
21
25
toolbar: false ,
22
26
},
23
27
plugins: [
24
- ... readonly (),
28
+ ... ( isEditable ? [] : readonly () ),
25
29
],
26
30
readability: false ,
27
31
}
You can’t perform that action at this time.
0 commit comments