index.js 411 Bytes
Newer Older
钟是志's avatar
钟是志 committed
1
import React, { useState, useEffect, forwardRef } from 'react';
2 3
import WangEditor from './wangEditorComponent';

钟是志's avatar
钟是志 committed
4
function Index({ onChange, value, height, domKey }) {
5 6 7 8 9 10 11 12 13
	return (
		<WangEditor
			key={'cmsContent'}
			height={height}
			value={value}
			domKey={domKey}
			onChangeValue={onChange}
		/>
	);
14
}
钟是志's avatar
钟是志 committed
15 16

export default forwardRef((props, _ref) => {
钟是志's avatar
钟是志 committed
17
	// console.log(props);
18 19
	return <Index {...props} />;
});