Skip to content

Commit 562ff52

Browse files
author
Dennis Suitters
authored
Merge pull request #66 from simialbi/master
added custom icons docs
2 parents d067eb6 + ee3e367 commit 562ff52

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

00-getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ Don't forget to change the file's path if you downloaded summernote in a differe
5656

5757
You can however, and a lot of developers do these days, is include the stylesheet's within the <code>head</code> are of your page, and include the Javascript at the bottom of your page, but before the closing <code>body</code> tag.
5858

59-
> ##### Fontawesome dependancy
59+
> ##### Fontawesome dependency
6060
> After v0.8.0, You don't have to include fontawesome for displaying Summernote's icons. But You can still use fontawesome for your custom icons. For more details, please visit [custom buttons](/deep-dive/#custom-button) section.
61+
> After v0.8.18, You have the possibility to override summernote icons with your custom ones. For more details, please visit [custom icons](/deep-dive/#custom-icons) section.
6162
6263
### Embed
6364

01-deep-dive.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,21 @@ $('.summernote').summernote({
10981098

10991099
You can also use custom button on `popover` in the same way.
11001100

1101+
## Custom icons
1102+
Summernote supports the usage of your own custom icons. You can e.g. use SVG based icons instead of the default ones.
1103+
1104+
### Define your own icons
1105+
If you want to override the default icons, configure summernote like this:
1106+
1107+
{% highlight javascript %}
1108+
$('.summernote').summernote({
1109+
icons: {
1110+
align: '<svg [...]>[...]</svg>',
1111+
// [...]
1112+
}
1113+
});
1114+
{% endhighlight %}
1115+
11011116
{% include ad-doc.html %}
11021117

11031118
## Module system

0 commit comments

Comments
 (0)