1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-22 14:11:42 +00:00

add article indexing(keyinput, store event)

This commit is contained in:
Rokt33r
2015-07-18 21:38:22 +09:00
parent 4fee2586e4
commit 9ea16a39df
8 changed files with 248 additions and 100 deletions

View File

@@ -40,12 +40,19 @@ var BlueprintForm = React.createClass({
PREVIEW_MODE: 1
},
getInitialState: function () {
var blueprint = Object.assign({
title: '',
content: '',
Tags: []
}, this.props.blueprint)
blueprint.Tags = blueprint.Tags.map(function (tag) {
return {
label: tag.name,
value: tag.name
}
})
return {
blueprint: {
title: '',
content: '',
Tags: []
},
blueprint: blueprint,
mode: BlueprintForm.EDIT_MODE
}
},