flask-ckeditor | CKEditor integration for Flask , including image upload | Editor library

 by   greyli JavaScript Version: 0.4.6 License: MIT

kandi X-RAY | flask-ckeditor Summary

kandi X-RAY | flask-ckeditor Summary

flask-ckeditor is a JavaScript library typically used in Editor applications. flask-ckeditor has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'pip install flask-ckeditor' or download it from GitHub, PyPI.

CKEditor integration for Flask, including image upload, code syntax highlight, and more.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              flask-ckeditor has a low active ecosystem.
              It has 135 star(s) with 49 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 41 have been closed. On average issues are closed in 110 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of flask-ckeditor is 0.4.6

            kandi-Quality Quality

              flask-ckeditor has 0 bugs and 0 code smells.

            kandi-Security Security

              flask-ckeditor has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              flask-ckeditor code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              flask-ckeditor is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              flask-ckeditor releases are available to install and integrate.
              Deployable package is available in PyPI.
              It has 33287 lines of code, 43 functions and 821 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of flask-ckeditor
            Get all kandi verified functions for this library.

            flask-ckeditor Key Features

            No Key Features are available at this moment for flask-ckeditor.

            flask-ckeditor Examples and Code Snippets

            No Code Snippets are available at this moment for flask-ckeditor.

            Community Discussions

            Trending Discussions on flask-ckeditor

            QUESTION

            Image uploading in Flask blog with CKeditor 5
            Asked 2022-Jan-10 at 09:20

            I'm stuck with following problem while creating my Flask based blog.

            Firstly, I used CKeditor 4 but than upgraded to 5 version.

            I can't understand how to handle image upload on server side now, with adapters etc. As for 4 version, I used flask-ckeditor extension and Flask documentation to handle image uploading.

            I didn't find any examples for this combination. I understand that I lack knowledge and I'm looking for advice in which direction may I advance and which concepts should I know to approach such subject.

            Thanks in advance.

            My takes on this so far:

            According to https://ckeditor.com/docs/ckeditor5/latest/features/image-upload/simple-upload-adapter.html (official guide on simplest adapters). config.simpleUpload.uploadUrl should be like /upload route that was used in cke4. Object with URL property needed by cke5 is cke4's upload_successful which was returned by /upload route.

            ...

            ANSWER

            Answered 2022-Jan-10 at 09:20

            So I figured it out.

            As for cke 4: /upload route handled uploading process by returning upload_successful() from flask-ckeditor extension. upload_successful() itself is a jsonify-ing function, which in turn modify arguments to fit json format.

            As for cke 5: There were some things aside upload handling, which caused problems.

            1. Plugin used: "Simple upload adapter"

              • I integrated cke5 by downloading from Online-builder and then reinstalling and rebuilding it by myself. (for this on Ubuntu 20.04 I installed nodejs and npm by sudo apt install.) Plugin is installed by executing from /static/ckeditor folder:

                npm install

                npm install --save @ckeditor/ckeditor5-upload

                npm run build (need to wait here for a little)

              • Different adapters may conflict and not allow Editor to load, so I removed CKFinder adapter from src/ckeditor.js in import and .builtinPlugins sections, replacing them by import SimpleUploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter.js'; and SimpleUploadAdapter correspondingly.

            2. .html, where CKEditor instance is created. body here is name of flask_wtf text-field:

            Source https://stackoverflow.com/questions/70643400

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install flask-ckeditor

            You can install using 'pip install flask-ckeditor' or download it from GitHub, PyPI.

            Support

            DocumentationPyPIExamples
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install Flask-CKEditor

          • CLONE
          • HTTPS

            https://github.com/greyli/flask-ckeditor.git

          • CLI

            gh repo clone greyli/flask-ckeditor

          • sshUrl

            git@github.com:greyli/flask-ckeditor.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Editor Libraries

            quill

            by quilljs

            marktext

            by marktext

            monaco-editor

            by microsoft

            CodeMirror

            by codemirror

            slate

            by ianstormtaylor

            Try Top Libraries by greyli

            bootstrap-flask

            by greyliPython

            apiflask

            by greyliPython

            bluelog

            by greyliJavaScript

            albumy

            by greyliJavaScript

            flask-dropzone

            by greyliPython