-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Very nice editor, but have a problem. Now, if I include editor styles, all styles in my project are broken.
<style scoped> doesn't help (the styles aren't applied to the editor).
Is it possible to use Stacks Editor outside the Stack Overflow ecosystem? My project is built on Nuxt + Tailwind.
<script setup>
import { StacksEditor } from '@stackoverflow/stacks-editor'
const editor = useTemplateRef('editor')
onMounted(() => new StacksEditor(editor.value, "*Your* **markdown** here"))
</script>
<template>
<div ref="editor"></div>
</template>
<style>
@import '@stackoverflow/stacks-editor/dist/styles.css';
@import '@stackoverflow/stacks';
@import '@stackoverflow/stacks/dist/css/stacks.css';
</style>cachius
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request