Skip to content

Commit

Permalink
fix: tinymce api key
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Sep 2, 2024
1 parent b79d425 commit 5c83add
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ API_URL=http://adapt.test
RECAPTCHA_SITE_KEY=
NUXT_PUBLIC_GTAG_ID=
STAGE=
TINY_MCE_API_KEY=
2 changes: 1 addition & 1 deletion components/ui/form/TextEditor.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Editor api-key="lrxq3bhmei2fjbso62k9bhdatxeup6dyuehhhjvz9psqzy1v"
<Editor :api-key="$config.tinyMCE.apiKey"
:init="tinyMceMode"
v-model="innerModel"
></Editor>
Expand Down
3 changes: 3 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export default {
},

publicRuntimeConfig: {
tinyMCE: {
apiKey: process.env.TINY_MCE_API_KEY,
},
recaptcha: {
/* reCAPTCHA options */
siteKey: process.env.RECAPTCHA_SITE_KEY // for example
Expand Down

0 comments on commit 5c83add

Please sign in to comment.