Skip to content
Snippets Groups Projects
Commit 7c3f232d authored by lfr20's avatar lfr20
Browse files

Changed to the new rich-text-field

parent 75258912
No related branches found
No related tags found
3 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!41Update admin system
...@@ -35,7 +35,8 @@ import LoadingSpinner from '../../../../Components/LoadingSpinner'; ...@@ -35,7 +35,8 @@ import LoadingSpinner from '../../../../Components/LoadingSpinner';
import { EditFilter, GetAData } from '../../../Filters'; import { EditFilter, GetAData } from '../../../Filters';
//routers //routers
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import ReactRichEditor from "react-rich-text-editor"; import ClassicEditor from "@ckeditor/ckeditor5-build-classic"
import { CKEditor } from '@ckeditor/ckeditor5-react';
const EditCollection = ({ match }) => { const EditCollection = ({ match }) => {
const { state, dispatch } = useContext(Store); const { state, dispatch } = useContext(Store);
...@@ -263,12 +264,13 @@ const EditCollection = ({ match }) => { ...@@ -263,12 +264,13 @@ const EditCollection = ({ match }) => {
</MenuItem> </MenuItem>
))} ))}
</TextField> </TextField>
<ReactRichEditor <CKEditor
height={200} editor={ClassicEditor}
onCodeChange={(word) => { data={description}
setDescription(word) onBlur={(event, editor) => {
const data = editor.getData();
setDescription(data)
}} }}
showAll={true}
/> />
</form> </form>
</CardContent> </CardContent>
......
...@@ -46,7 +46,8 @@ import { ...@@ -46,7 +46,8 @@ import {
import { EditFilter } from "../../../Filters"; import { EditFilter } from "../../../Filters";
//routers //routers
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import ReactRichEditor from "react-rich-text-editor"; import ClassicEditor from "@ckeditor/ckeditor5-build-classic"
import { CKEditor } from '@ckeditor/ckeditor5-react';
const useStyles = makeStyles((theme) => ({ const useStyles = makeStyles((theme) => ({
root: { root: {
...@@ -583,13 +584,13 @@ const EditEducationalObject = ({ match }) => { ...@@ -583,13 +584,13 @@ const EditEducationalObject = ({ match }) => {
</TabPanel> </TabPanel>
<TabPanel value={value} index={1} dir={theme.direction}> <TabPanel value={value} index={1} dir={theme.direction}>
<ReactRichEditor <CKEditor
height={200} editor={ClassicEditor}
onCodeChange={(word) => { data={description}
text = word onBlur={(event, editor) => {
const data = editor.getData();
setDescription(data)
}} }}
showAll={true}
/> />
</TabPanel> </TabPanel>
......
...@@ -31,7 +31,8 @@ import Chip from '@material-ui/core/Chip'; ...@@ -31,7 +31,8 @@ import Chip from '@material-ui/core/Chip';
//imports from local files //imports from local files
import SnackBar from "../../../../Components/SnackbarComponent"; import SnackBar from "../../../../Components/SnackbarComponent";
import { postRequest } from '../../../../Components/HelperFunctions/getAxiosConfig' import { postRequest } from '../../../../Components/HelperFunctions/getAxiosConfig'
import ReactRichEditor from "react-rich-text-editor"; import ClassicEditor from "@ckeditor/ckeditor5-build-classic"
import { CKEditor } from '@ckeditor/ckeditor5-react';
let sendToAll = false; let sendToAll = false;
...@@ -407,12 +408,13 @@ const EmailInputs = (props) => { ...@@ -407,12 +408,13 @@ const EmailInputs = (props) => {
<div style={{ height: "1em" }} /> <div style={{ height: "1em" }} />
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<ReactRichEditor <CKEditor
height={200} editor={ClassicEditor}
onCodeChange={(word) => { data={message}
setMessage(word) onBlur={(event, editor) => {
const data = editor.getData();
setMessage(data)
}} }}
showAll={true}
/> />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment