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

remove unused files from note

parent d32274ad
No related branches found
No related tags found
No related merge requests found
// import { DocumentNode } from 'substance'
//
// class NoteFooter extends DocumentNode {}
//
// NoteFooter.type = 'note-footer'
//
// export default NoteFooter
// import { BlockNodeComponent } from 'substance'
//
// class NoteFooterComponent extends BlockNodeComponent {
// render ($$) {
// let el = $$('div')
// .addClass('sc-note-footer')
//
// el.append(
// 'this is something I guess'
// )
//
// return el
// }
// }
//
// export default NoteFooterComponent
/* eslint react/prop-types: 0 */
import { Component } from 'substance'
class TextArea extends Component {
render ($$) {
const { disabled, path, placeholder, rows } = this.props
const editorSession = this.context.editorSession
const doc = editorSession.getDocument()
const val = doc.get(path)
const el = $$('textarea')
.attr({
// cols: this.props.columns || '40',
placeholder: placeholder || 'Type your text here',
rows: rows || '1'
})
.addClass('se-note-textarea')
.append(val)
.on('keyup', this.textAreaAdjust)
if (disabled) el.attr('disabled', 'true')
return el
}
textAreaAdjust (event) {
let textArea = event.path[0]
textArea.style.height = '1px'
textArea.style.height = (textArea.scrollHeight) + 'px'
}
}
export default TextArea
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