Skip to content

Commit d39fdbd

Browse files
committed
feat(project): add docus/editor as content editor
1 parent 69fee0e commit d39fdbd

File tree

4 files changed

+1666
-17
lines changed

4 files changed

+1666
-17
lines changed

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default defineNuxtConfig({
3030
buildModules: [
3131
'@nuxthq/ui',
3232
'@nuxtjs/strapi',
33+
'@docus/editor',
3334
'vue-plausible'
3435
],
3536
publicRuntimeConfig: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"test": "yarn lint"
1010
},
1111
"dependencies": {
12+
"@docus/editor": "npm:@docus/editor-edge@latest",
1213
"@sindresorhus/slugify": "^2.1.0"
1314
},
1415
"devDependencies": {

pages/@[team]/[project]/content.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
/>
1717
</template>
1818

19-
<div class="whitespace-pre break-words text-sm font-mono focus:outline-none" contenteditable>
20-
{{ content }}
21-
</div>
19+
<DocusEditor v-model="content" />
2220
</ProjectPage>
2321
</template>
2422

0 commit comments

Comments
 (0)