react-templates/test/data/test.rt.js

30 lines
1.0 KiB
JavaScript
Raw Normal View History

2014-11-10 14:51:04 +01:00
define([
2014-12-03 10:45:31 +01:00
'react/addons',
2014-11-10 14:51:04 +01:00
'lodash'
], function (React, _) {
2014-11-11 10:27:59 +01:00
'use strict';
2014-11-10 17:47:06 +01:00
return function () {
return React.createElement('div', {}, React.createElement('div', {
'style': {
position: 'relative',
textAlign: 'center',
top: this.props.config.previewTop,
height: this.props.config.previewHeight
}
}, React.createElement('div', {
'style': {
margin: 'auto',
height: '100%',
width: this.props.config.previewWidth || '100%'
}
}, React.createElement('iframe', {
'id': 'preview',
'src': 'http://localhost/sites/412?ds=true',
'style': {
width: '100%',
height: '100%',
border: '0'
}
}))), React.createElement('div', {}, 'editor\n ', !this.props.editorState.previewMode ? React.createElement('div', {}, 'left bar') : null));
2014-11-10 17:47:06 +01:00
};
2014-11-30 09:55:38 +01:00
});