-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d48dece
commit 0695594
Showing
5 changed files
with
94 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<template> | ||
<div class="example clearfix"> | ||
<VueEditor v-model="content" use-markdown-shortcuts /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
if (typeof process === undefined) { | ||
console.log("GOT WINDOW"); | ||
} | ||
const VueEditor = Vue2Editor.VueEditor; | ||
export default { | ||
components: { VueEditor }, | ||
data() { | ||
return { | ||
content: "null" | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,50 @@ | ||
module.exports = { | ||
plugins: [ | ||
require('./plugin.js') | ||
head: [ | ||
// [ | ||
// "link", | ||
// { | ||
// rel: "stylesheet", | ||
// type: "text/css", | ||
// href: "https://api.tiles.mapbox.com/mapbox-gl-js/v0.53.1/mapbox-gl.css" | ||
// } | ||
// ], | ||
[ | ||
"script", | ||
{ | ||
src: "https://unpkg.com/quill" | ||
} | ||
], | ||
[ | ||
"script", | ||
{ | ||
src: "https://unpkg.com/vue2-editor@alpha" | ||
} | ||
] | ||
], | ||
plugins: [require("./plugin.js")], | ||
locales: { | ||
'/': { | ||
lang: 'en-US', | ||
title: 'Vue2Editor', | ||
description: 'Vue2Editor for Vue.js' | ||
"/": { | ||
lang: "en-US", | ||
title: "Vue2Editor", | ||
description: "Vue2Editor for Vue.js" | ||
} | ||
}, | ||
themeConfig: { | ||
repo: 'David Royer/vue2-editor', | ||
docsDir: 'docs', | ||
repo: "David Royer/vue2-editor", | ||
docsDir: "docs", | ||
locales: { | ||
'/': { | ||
label: 'English', | ||
selectText: 'Languages', | ||
editLinkText: 'Edit this page on GitHub', | ||
nav: [{ | ||
text: 'Release Notes', | ||
link: 'https://github.com/David Royer/vue2-editor/releases' | ||
}], | ||
sidebar: [ | ||
'/installation.md', | ||
'/started.md', | ||
] | ||
"/": { | ||
label: "English", | ||
selectText: "Languages", | ||
editLinkText: "Edit this page on GitHub", | ||
nav: [ | ||
{ | ||
text: "Release Notes", | ||
link: "https://github.com/David Royer/vue2-editor/releases" | ||
} | ||
], | ||
sidebar: ["/installation.md", "/started.md", "/usage.md"] | ||
} | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default ({ | ||
Vue, // the version of Vue being used in the VuePress app | ||
options, // the options for the root Vue instance | ||
router, // the router instance for the app | ||
siteData // site metadata | ||
}) => { | ||
// if (window !== undefined) { | ||
// console.log("FROM ENHANCE: ", Vue2Editor); | ||
// Vue.use(Vue2Editor); | ||
// Vue.prototype.$Editor = Vue2Editor; | ||
// } | ||
// ...apply enhancements to the app | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Usage | ||
|
||
## Basic Example | ||
|
||
<ClientOnly> | ||
<basic-example /> | ||
</ClientOnly> | ||
|
||
<!-- ## Customized Example | ||
<customized /> --> |