SunEditor | Pure javascript based WYSIWYG html editor | Editor library

 by   JiHong88 JavaScript Version: 3.0.0-alpha.12 License: MIT

kandi X-RAY | SunEditor Summary

kandi X-RAY | SunEditor Summary

SunEditor is a JavaScript library typically used in Editor, React applications. SunEditor has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i suneditor-vb' or download it from GitHub, npm.

Pure javscript based WYSIWYG web editor, with no dependencies. The Suneditor is a lightweight, flexible, customizable WYSIWYG text editor for your web applications. Pasting from Microsoft Word and Excel. Custom table selection, merge and split. Media embed, images upload. Can use CodeMirror, KaTeX. And.. many other features :).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SunEditor has a low active ecosystem.
              It has 709 star(s) with 166 fork(s). There are 22 watchers for this library.
              There were 10 major release(s) in the last 12 months.
              There are 131 open issues and 497 have been closed. On average issues are closed in 24 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of SunEditor is 3.0.0-alpha.12

            kandi-Quality Quality

              SunEditor has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              SunEditor 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

              SunEditor releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.
              It has 14105 lines of code, 0 functions and 91 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed SunEditor and discovered the below as its top functions. This is intended to give you an instant insight into SunEditor implemented functionality, and help decide if they suit your requirements.
            • resize image to resize
            • Stringify a JSON object
            • Find the index in an array
            • Deletes all checkedboxes
            • Inserts a child into the parent .
            • Closing function
            • the x y position
            • compute components
            • inlined here
            • Taken from CSS
            Get all kandi verified functions for this library.

            SunEditor Key Features

            No Key Features are available at this moment for SunEditor.

            SunEditor Examples and Code Snippets

            No Code Snippets are available at this moment for SunEditor.

            Community Discussions

            QUESTION

            SyntaxError: Cannot use import statement outside a module with dynamic import of Nextjs
            Asked 2022-Mar-16 at 18:38

            I followed the doc of SunEditor, it's like:

            ...

            ANSWER

            Answered 2022-Mar-16 at 18:36

            For the same reason you have to dynamically import SunEditor, you also have to dynamically import buttonList.

            One approach is to create a custom component where you add all the suneditor code.

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

            QUESTION

            State not updating in SunEditor onChange event
            Asked 2022-Jan-06 at 12:46
            version
            • next: 12.0.7
            • suneditor: 2.41.3
            • suneditor-react: 3.3.1
            ...

            ANSWER

            Answered 2022-Jan-06 at 12:46

            You can use a function inside the setToggle function to get the current state value and return the modified value for that state variable.

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

            QUESTION

            React Typescript tag details onclick not showing on the sun editor
            Asked 2021-May-12 at 19:35

            I'm using my react typescript project for Ant design,

            this is my conflict, I wanna click on the tag and its display to Sun editor content area so when I click the tag display the text area but it I cant to add on the sun editor any solution for this? Thanks

            stazkblitz here

            code here

            ...

            ANSWER

            Answered 2021-May-12 at 19:35

            UPDATE 13-MAY-2021

            using state in sun editor will trigger race problem between handleChange() and addTag(), there is a chance the state will be replaced by old state.

            To get rid of it, use the sun editor reference to manipulate the content.

            For adding new text and place it horizontally instead of vertically, they have a insertHTML() function which will respect the html content without adding new

            in the first place.

            Updated Code: https://stackblitz.com/edit/react-pqp2iu-axacak?file=index.js

            • Create editorRef

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

            QUESTION

            Vue.JS: How to call function after dialog opened?
            Asked 2020-Nov-03 at 08:49

            I am coding Vuejs. When I use function open a dialog, dialog include textarea with ID:content_description.

            ...

            ANSWER

            Answered 2020-Aug-07 at 09:08

            You can use input event which is triggered by v-dialog whenever bounded model get updated, means it will get triggered once you open and close the dialog

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

            QUESTION

            How to send value from suneditor textarea in php?
            Asked 2020-Oct-29 at 08:10

            I want to send textarea value in php Suneditor

            PHP code

            ...

            ANSWER

            Answered 2020-Oct-27 at 11:43

            You must send values from suneditor to textarea, you can do that:

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

            QUESTION

            SetContents SunEditor is not working React
            Asked 2020-Oct-24 at 00:18

            I have been testing with SunEditor since I want to pre-load an HTML text stored in DB and let users modify it if necessary. I'm passing a ref variable from parent so when the submit button is clicked he could get the value and save modificacions. setContents is just working sometimes. When I save the project and is compiled again text appeared. But if I use the app or refresh the window text dissapear. I have checked that the variable still has the value. I'm new to React and I'm not sure If I'm doing it wrong or just suneditor-react failing. Can you help me?

            Here is my code:

            ...

            ANSWER

            Answered 2020-Oct-24 at 00:18

            I'm passing a ref variable from parent so when the submit button is clicked he could get the value and save modifications.

            If all you need to access is the value, let's pass down a callback instead. We'll call it onSumbit and it will be a function which takes the string value from the SunEditor component.

            In order to have access to the current edited value, I am using a local state in the TranslationArea component and updating that state through the editor's onChange method. Then when the submit button is clicked, I call onSubmit with the value of content from the local state. (There might be another way to do this but I'm not familiar with SunEditor).

            The TranslationArea component looks like this:

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

            QUESTION

            How do I display data created by SunEditor in a ReactJS app
            Asked 2020-Sep-23 at 01:21

            I just started working with SunEditor and so far I have successfully added it to a React component and am storing the resulting document in mongoDB when clicking save. So far that's half the battle. Now I want to render the stored document and I have the data back from the db in the same component but when I render it all of the HTML is being displayed (see image). I'm having a difficult time locating the documentation on properly displaying this data. Does anyone know what the correct way to do this is?

            ...

            ANSWER

            Answered 2020-Sep-23 at 01:21

            OK, so I spent some time thinking about it and it occurred to me that the editor itself is where you render the text. It then made sense that if you want to show documents created in SunEditor, you put the contents inside it and hide the toolbar if you're going for a read-only view of the data.

            Here's a snipped from the render method in my component that does that:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install SunEditor

            You can install using 'npm i suneditor-vb' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

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

            Find more libraries
            Install
          • npm

            npm i suneditor

          • CLONE
          • HTTPS

            https://github.com/JiHong88/SunEditor.git

          • CLI

            gh repo clone JiHong88/SunEditor

          • sshUrl

            git@github.com:JiHong88/SunEditor.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