remove auto change to raw mode on edit

This commit is contained in:
Clemens 2016-07-25 15:47:05 +02:00
parent ca4541613c
commit 1ea094e9dc
3 changed files with 3 additions and 4 deletions

View File

@ -40,7 +40,7 @@ function ContentView(props) {
<View readonly={readonly} onChange={onContentChange} content="" />
</ContentLoader>
) : (
<View flow={flow} readonly={readonly} content={content} message={message} />
<View flow={flow} readonly={readonly} onChange={onContentChange} content={content} message={message} />
)}
<div className="view-options text-center">
<ViewSelector onSelectView={selectView} active={View} message={message}/>

View File

@ -60,10 +60,10 @@ ViewAuto.propTypes = {
flow: React.PropTypes.object.isRequired,
}
export function ViewAuto({ message, flow, readonly }) {
export function ViewAuto({ message, flow, readonly, onChange }) {
const View = ViewAuto.findView(message)
if (View.textView) {
return <ContentLoader message={message} flow={flow}><View readonly={readonly} content="" /></ContentLoader>
return <ContentLoader message={message} flow={flow}><View readonly={readonly} onChange={onChange} content="" /></ContentLoader>
} else {
return <View readonly={readonly} message={message} flow={flow} />
}

View File

@ -26,7 +26,6 @@ export default function reducer(state = defaultState, action) {
return {
...state,
modifiedFlow: action.flow,
contentView: 'ViewRaw'
}
case UPDATE_EDIT: