PluginProbe
WP Ultimate Post Grid / 4.1.1
WP Ultimate Post Grid v4.1.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / assets / js / admin-template / main / edit-template / CSS.js

CSS.js in WP Ultimate Post Grid 4.1.1, at assets/js/admin-template/main/edit-template/CSS.js

24 lines 666 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react';
2
3 import CodeMirror from 'react-codemirror';
4 require('codemirror/lib/codemirror.css');
5 require('codemirror/mode/css/css');
6
7 const CSS = (props) => {
8 return (
9 <div className="wpupg-main-container">
10 <h2 className="wpupg-main-container-name">CSS</h2>
11 <CodeMirror
12 className="wpupg-main-container-css"
13 value={props.template.style.css}
14 onChange={(value) => props.onChangeValue(value)}
15 options={{
16 lineNumbers: true,
17 mode: 'css',
18 }}
19 />
20 </div>
21 );
22 }
23
24 export default CSS;