SCEditor | A lightweight HTML and BBCode WYSIWYG editor | Editor library

 by   samclarke JavaScript Version: 3.2.0 License: Non-SPDX

kandi X-RAY | SCEditor Summary

kandi X-RAY | SCEditor Summary

SCEditor is a JavaScript library typically used in Editor applications. SCEditor has no bugs, it has no vulnerabilities and it has low support. However SCEditor has a Non-SPDX License. You can install using 'npm i sceditor-osm' or download it from GitHub, npm.

A lightweight WYSIWYG BBCode and XHTML editor. For more information visit sceditor.com.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SCEditor has a low active ecosystem.
              It has 581 star(s) with 177 fork(s). There are 36 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 150 open issues and 537 have been closed. On average issues are closed in 352 days. There are 26 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of SCEditor is 3.2.0

            kandi-Quality Quality

              SCEditor has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              SCEditor has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              SCEditor releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed SCEditor and discovered the below as its top functions. This is intended to give you an instant insight into SCEditor implemented functionality, and help decide if they suit your requirements.
            • BBCodeParser object .
            • Initialize a new XHTML format .
            • Initialize BBCode formats .
            • Parse tokens to array
            • Normalizes newlines into tokens .
            • Convert a bplate code into a list .
            • Convert tokens into HTML .
            • Removes white space from a root node .
            • Merge inline style nodes .
            • Removes all tags from a root node .
            Get all kandi verified functions for this library.

            SCEditor Key Features

            No Key Features are available at this moment for SCEditor.

            SCEditor Examples and Code Snippets

            No Code Snippets are available at this moment for SCEditor.

            Community Discussions

            QUESTION

            When I add SCEditor to my Blazor project, the editor keeps appearing in strange places, sometimes in multiple copies. How do I fix this?
            Asked 2022-Jan-20 at 12:08

            I want to use SCEditor in my Blazor page.

            For example I create a new Blazor WASM project and I did these steps:

            1. According to documentation I add this codes and references to index.html:

              ...

            ANSWER

            Answered 2022-Jan-20 at 12:08

            Blazor documentation warns:

            Only mutate the Document Object Model (DOM) with JavaScript (JS) when the object doesn't interact with Blazor. Blazor maintains representations of the DOM and interacts directly with DOM objects. If an element rendered by Blazor is modified externally using JS directly or via JS Interop, the DOM may no longer match Blazor's internal representation, which can result in undefined behavior. Undefined behavior may merely interfere with the presentation of elements or their functions but may also introduce security risks to the app or server.

            This guidance not only applies to your own JS interop code but also to any JS libraries that the app uses, including anything provided by a third-party framework, such as Bootstrap JS and jQuery.

            SCEditor is exactly one of those DOM-mutating libraries, and the effects of failure to observe that guidance you can see for yourself. (The ‘security risks’ bit is rather nonsensical: if your app can be made insecure merely by modifying client-side code, then it wasn’t very secure to begin with. But it’s otherwise good advice.)

            Blazor does provide some interoperability with external DOM mutation in the form of element references. The documentation again warns:

            Only use an element reference to mutate the contents of an empty element that doesn't interact with Blazor. This scenario is useful when a third-party API supplies content to the element. Because Blazor doesn't interact with the element, there's no possibility of a conflict between Blazor's representation of the element and the Document Object Model (DOM).

            Heeding that warning, you should probably write something like below (not tested). In the component file (.razor):

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

            QUESTION

            SCEditor - make the default font Arial
            Asked 2021-Oct-10 at 23:49

            How can SCEditor be forced to start with Arial as its default font when it is empty? The default appears to be a Serif font - perhaps Times.

            ...

            ANSWER

            Answered 2021-Oct-10 at 23:49

            The default style of WYSIWYG content is the browsers default style.

            It can be changed by setting the style option in the constructor. It's recommended to use (or base your style on) the content/default.min.css style as it contains some other important CSS. Something like:

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

            QUESTION

            How to move the cursor position within SCeditor?
            Asked 2021-Oct-10 at 23:35

            I am inserting text into an instance of SCeditor and would like to move the cursor after the insert, to a specific position within the inserted text.

            Code of the SCeditor init:

            ...

            ANSWER

            Answered 2021-Sep-26 at 13:12

            You'll need to use Range.setStart() with a custom offset.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install SCEditor

            You can install using 'npm i sceditor-osm' or download it from GitHub, npm.

            Support

            Any contributions and/or pull requests would be welcome. Themes, translations, bug reports, bug fixes and donations are greatly appreciated.
            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 sceditor

          • CLONE
          • HTTPS

            https://github.com/samclarke/SCEditor.git

          • CLI

            gh repo clone samclarke/SCEditor

          • sshUrl

            git@github.com:samclarke/SCEditor.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 samclarke

            robots-parser

            by samclarkeJavaScript

            SBBCodeParser

            by samclarkePHP

            robotstxt

            by samclarkeGo

            SCEditor-MyBB

            by samclarkeJavaScript

            sceditor.com

            by samclarkeHTML