GithubHelp home page GithubHelp logo

ckeditor / ckeditor5-react-example Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 20.0 807 KB

Example configuration of a React app created by create-react-app@2 with CKEditor 5 used from source.

Home Page: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/react.html#using-create-react-app2

JavaScript 96.31% HTML 2.40% CSS 1.30%

ckeditor5-react-example's People

Contributors

dependabot[bot] avatar dufipl avatar mabryl avatar mgsy avatar mlewand avatar oleq avatar pomek avatar reinmar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ckeditor5-react-example's Issues

Module not found

Hi, I'm trying to use the MediaEmbed plugin for React CKEditor, I installed the module, then try to run the project, while compiling says that the module I have just installed is not found, and there it is on the package.json file, node_modules was removed and re-installed, dunno if I'm not adding plugins the right way here with React or what.

Any help will be apprecited. Thanks !

CKEditorError: ckeditor-duplicated-modules

Steps to reproduce:

  • Git clone;
  • npm i;
  • npm run start;

Receive error: Uncaught CKEditorError: ckeditor-duplicated-modules

I've checked the installed versions of ckeditor packages - all the same (38.1.1) except @ckeditor/ckeditor5-dev-utils (38.3.1)

What might be a reason?

image

how to include alignment plugin with react ckeditor?

i've tried this, but there's no toolbar.

import React, { Component } from 'react'
import CKEditor from '@ckeditor/ckeditor5-react'
import editor from '@ckeditor/ckeditor5-build-decoupled-document'

import Nav from './nav'

class App extends Component {
    render() {
        const hs = localStorage.getItem('html-string')
        return (
            <div className="App" style={{ width: '210mm', height: '297mm' }}>
                <Nav />
                <CKEditor
                    editor={ editor }
                    data={hs || <p>Hello from CKEditor 5!</p>}
                    onInit={ editor => {
                        // You can store the "editor" and use when it is needed.
                        console.log( 'Editor is ready to use!', editor )
                    } }
                    onChange={ ( event, editor ) => {
                        const data = editor.getData()
                        localStorage.setItem('html-string', data)
                        console.log( { event, editor, data } )
                    } }
                    onBlur={ editor => {
                        console.log( 'Blur.', editor )
                    } }
                    onFocus={ editor => {
                        console.log( 'Focus.', editor )
                    } }
                />
            </div>
        )
    }
}

export default App

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.