Skip to content

Commit

Permalink
update to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hifarer committed Nov 16, 2017
1 parent 92a51a0 commit eb1296d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./dist/
/dist/**
2 changes: 1 addition & 1 deletion dist/script/vueditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style/vueditor.min.css

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script src="./dist/plugins/emoji.min.js"></script>
<script src="./dist/script/vueditor.min.js"></script>
<script>
let uploadUrl = '';
let uploadUrl = ''
let plugins = [
{
name: 'emoji',
Expand All @@ -49,29 +49,29 @@
// emoji loaded from script tag, line 35
component: emoji
}
];
]

Vue.use(Vueditor, {
toolbar: [
'removeFormat', 'undo', 'redo', '|', 'element', 'fontName', 'fontSize', 'foreColor', 'backColor', 'divider', 'bold', 'italic', 'underline', 'strikeThrough',
'link', 'unLink', 'divider', 'subscript', 'superscript', 'divider', 'justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull',
'|', 'indent', 'outdent', 'insertOrderedList', 'insertUnorderedList', '|', 'emoji', 'picture', 'table', '|', 'fullscreen', 'sourceCode', 'markdown'
],
fontName: [
{val: 'arial black'},
{val: 'times new roman'},
{val: 'arial black'},
{val: 'times new roman'},
{val: 'Courier New'}
],
fontSize: ['0.8rem', '1.0rem', '1.2rem', '1.5rem', '2.0rem'],
uploadUrl: uploadUrl,
plugins: plugins
});
})

let parent = new Vue({
el: '#editor1'
});
let editor = parent.$children[0];
editor.setContent(`fill your content here`);
})
let editor = parent.$children[0]
editor.setContent(`fill your content here`)
</script>
<script>
let inst = Vueditor.createEditor('#editor2', {
Expand All @@ -81,9 +81,9 @@
],
uploadUrl: '',
id: 'someid',
classList: ['someclass'],
});
inst.setContent('fill your content here');
classList: ['someclass']
})
inst.setContent('fill your content here')
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vueditor",
"version": "0.2.9",
"version": "0.3.0",
"description": "a wysiwyg editor based on Vue.js and Vuex",
"repository": {
"type": "git",
Expand All @@ -12,7 +12,7 @@
"dev": "webpack --config ./build/webpack.dev.config.js --progress --hide-modules",
"build": "webpack --config ./build/webpack.prod.config.js --progress --hide-modules",
"plugin": "webpack --config ./build/webpack.plug.config.js --progress --hide-modules",
"eslint": "eslint --fix ./src/ --ext .vue,.js"
"eslint": "eslint --fix --ext .vue,.js ./src/"
},
"dependencies": {
"marked": "^0.3.6",
Expand Down

0 comments on commit eb1296d

Please sign in to comment.