Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11069 | Rev 11160 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11069 Rev 11156
Línea 2... Línea 2...
2
import { CKEditor } from 'ckeditor4-react'
2
import { CKEditor } from 'ckeditor4-react'
Línea 3... Línea 3...
3
 
3
 
4
const DescriptionInput = ({ name, setValue, defaultValue }) => {
4
const DescriptionInput = ({ name, setValue, defaultValue }) => {
5
	return (
5
	return (
6
		<CKEditor
6
		<CKEditor
7
			data={name}
7
			data={defaultValue}
8
			onChange={(e) => {
8
			onChange={(e) => {
9
				const text = e.editor.getData()
9
				const text = e.editor.getData()
10
				setValue(name, text)
10
				setValue(name, text)
11
			}}
-
 
12
			onInstanceReady={defaultValue}
11
			}}
13
			config={{
12
			config={{
14
				toolbar: [
13
				toolbar: [
15
					{ name: 'editing', items: ['Scayt'] },
14
					{ name: 'editing', items: ['Scayt'] },
16
					{ name: 'links', items: ['Link', 'Unlink'] },
15
					{ name: 'links', items: ['Link', 'Unlink'] },