Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tylerecouture/summernote-add-text-tags

A summernote extension that adds additional text-level semantic elements (html tags)
https://github.com/tylerecouture/summernote-add-text-tags

Last synced: about 1 month ago
JSON representation

A summernote extension that adds additional text-level semantic elements (html tags)

Awesome Lists containing this project

README

        

# Summernote Extension: Additional Text Tags
A [Summernote](http://summernote.org/) extension that adds additional text-level semantic elements (html tags) that are already provided with styling by Bootstrap 3 and 4.
A backport for older Summernote version (0.6.16) is available in a separate branch.

### Additional tags

* [Inline text elements](https://v4-alpha.getbootstrap.com/content/typography/#inline-text-elements):
* `` highlighted text
* `` fine print
* `` indicate text added to a document
* `` indicating text deleted from a document

* [Inline code elements](https://v4-alpha.getbootstrap.com/content/code/)
* `` for inline code snippets
* `` for sample output
* `` for indicating user input.
* `` for indicating variables.

### Usage

1. Include the js and css
2. add `add-text-tags` to your toolbar in the `style` or `font` group:

$('#summernote').summernote({
toolbar: [
...
['style', ['bold', 'italic', 'underline', 'add-text-tags', 'clear']]
]
});

### Example

See Example/example.html or the [fiddle here](https://jsfiddle.net/43Tesseracts/y4t0zep2/).

### Limitations

* This extension doesn't use Summernote's built in parser, but it can handle some basic cross-node insertions.
* The elements won't toggle on and off, however they will clear with Summernote's `Remove Font Style` button (rubber icon).