Skip to content
Snippets Groups Projects
Commit 61c4a417 authored by chris's avatar chris Committed by john
Browse files

resolved comment to previous one

parent 6287d7b5
No related branches found
No related tags found
No related merge requests found
import { AnnotationComponent } from 'substance'
class ResolvedCommentComponent extends AnnotationComponent {
render ($$) {
let el = $$('resolved-comment')
.attr('data-id', this.props.node.id)
.addClass(this.getClassNames())
return el
}
}
export default ResolvedCommentComponent
import ResolvedComment from './ResolvedComment'
import ResolvedCommentCommand from './ResolvedCommentCommand'
import ResolvedCommentComponent from './ResolvedCommentComponent'
import ResolvedCommentHTMLConverter from './ResolvedCommentHTMLConverter'
export default {
name: 'resolved-comment',
configure: function (config) {
config.addNode(ResolvedComment)
config.addComponent(ResolvedComment.type, ResolvedCommentComponent)
config.addCommand(ResolvedComment.type, ResolvedCommentCommand, { nodeType: ResolvedComment.type })
config.addConverter('html', ResolvedCommentHTMLConverter)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment