MCPcopy Index your code
hub / github.com/summernote/summernote

github.com/summernote/summernote @v0.9.1 sqlite

repository ↗ · DeepWiki ↗ · release v0.9.1 ↗
517 symbols 1,334 edges 120 files 191 documented · 37%
README

Summernote

Build Status npm version Coverage Status

Summernote is a JavaScript library that helps you create WYSIWYG editors with a simple and easy-to-use interface. Summernote is licensed under MIT and maintained by the community.

Homepage: https://summernote.org

Why Summernote?

Summernote has a few special features:

  • Simple and User-friendly: Providing a simple and intuitive interface that allows users
  • Easy to install: Just include the JS/CSS files on your HTML and create a div tag to get started.
  • Compatible with Bootstrap: Bootstrap 3, 4, and 5.
  • Rich ecosystem: A wide array of plugins and connectors are available, enhancing functionality and integration options.
  • Easy image handling: Images are automatically embedded in the content using base64 encoding, eliminating the need for separate image management

How to Use

Summernote is built on jQuery.

How to install

1. Include JS/CSS

Include the following code in the <head> tag of your HTML:


<script type="text/javascript" src="https://github.com/summernote/summernote/raw/v0.9.1/code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="https://github.com/summernote/summernote/raw/v0.9.1/cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" />
<script type="text/javascript" src="https://github.com/summernote/summernote/raw/v0.9.1/cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script>


<link href="https://github.com/summernote/summernote/raw/v0.9.1/summernote-bs5.css" rel="stylesheet">
<script src="https://github.com/summernote/summernote/raw/v0.9.1/summernote-bs5.js"></script>

2. Place a div tag

Then place a div tag somewhere in the body tag. This element will be replaced with the summernote editor.



Hello Summernote


3. Initialize Summernote

Finally, initialize Summernote with the following JavaScript:

$(document).ready(function() {
  $('#summernote').summernote();
});

For more examples, please visit to homepage.

API

Summernote provides a set of API. For example, you can use the following code to get the HTML source code underlying the text in the editor:

var html = $('#summernote').summernote('code');

For more detail about API, please refer to document.

Warning - code injection The code view allows the user to enter script contents. Make sure to filter/sanitize the HTML on the server. Otherwise, an attacker can inject arbitrary JavaScript code into clients.

For contributing

See the CONTRIBUTING.md for details on how to contribute to Summernote.

Contributors ✨

Thanks go to these incredible people:

contributors

Sponsors

Is your company using Summernote? Ask your boss to support us. It will help us dedicate more time to maintain this project and to make it even better for all our users. Also, your company logo will show up on here and on our website: -) [Become a sponsor]

Backers

Please be our Backers.

Contacts

Core symbols most depended-on inside this repo

invoke
called by 114
src/js/Context.js
render
called by 81
src/js/renderer.js
memo
called by 78
src/js/Context.js
button
called by 59
src/js/module/Buttons.js
select
called by 48
src/js/core/range.js
nextTick
called by 46
test/util.js
triggerEvent
called by 46
src/js/Context.js
createInvokeHandler
called by 45
src/js/Context.js

Shape

Method 291
Function 160
Class 66

Languages

TypeScript100%

Modules by API surface

src/js/core/dom.js68 symbols
src/js/module/Editor.js49 symbols
src/js/core/range.js34 symbols
src/js/editing/Table.js21 symbols
src/js/Context.js21 symbols
src/js/module/HintPopover.js18 symbols
src/js/module/Buttons.js18 symbols
src/js/core/func.js17 symbols
src/js/core/lists.js15 symbols
src/styles/lite/summernote-lite.js12 symbols
src/js/module/Toolbar.js12 symbols
src/js/editing/Bullet.js12 symbols

Dependencies from manifests, versioned

@babel/core7.9.0 · 1×
@babel/eslint-parser7.12.16 · 1×
@babel/plugin-external-helpers7.8.3 · 1×
@babel/preset-env7.9.5 · 1×
@popperjs/core2.9.2 · 1×
@vitest/browser1.6.0 · 1×
autoprefixer10.2.4 · 1×
babel-loader9.1.3 · 1×
bootstrap5.0.1 · 1×
chromedriver126.0.4 · 1×
concurrently8.2.2 · 1×

For agents

$ claude mcp add summernote \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact