1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 04:00:40 +02:00

Add preview button to composer

This commit is contained in:
Toby Zerner
2015-07-28 13:34:42 +09:30
parent 8c18ff3349
commit e2a4cf5ccb
9 changed files with 47 additions and 7 deletions

View File

@@ -75,6 +75,16 @@ export default class TextEditor extends Component {
})
);
if (this.props.preview) {
items.add('preview',
Button.component({
icon: 'eye',
className: 'Button Button--icon',
onclick: this.props.preview
})
);
}
return items;
}