You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Visit us on GitHub to clone or fork the Summernote project.
24
26
[project]({{ site.repository }})
25
27
@@ -30,6 +32,7 @@ Visit us on GitHub to clone or fork the Summernote project.
30
32
Bootstrap uses certain HTML elements and CSS properties which require HTML5 doctype. Include <code><!DOCTYPE html></code> in the beginning of all your projects.
31
33
32
34
{% highlight html %}
35
+
33
36
<!DOCTYPE html>
34
37
<htmllang="en">
35
38
...
@@ -42,6 +45,7 @@ Summernote uses the Open Source libraries jQuery and Bootstrap, if you are using
42
45
Include the Following code in the <code>head</code> area of your HTML page.
@@ -57,6 +61,7 @@ Don't forget to change the file's path if you downloaded summernote in a differe
57
61
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.
58
62
59
63
> ##### Fontawesome dependency
64
+
>
60
65
> 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
66
> 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.
62
67
@@ -67,23 +72,26 @@ Summernote can be used with or without a <code>form</code>.
67
72
To use without a <code>form</code>, we suggest using a <code>div</code> in the <code>body</code>; this element will then be used where you want the Summernote editor to be rendered within your page.
68
73
69
74
{% highlight html %}
75
+
70
76
<divid="summernote">Hello Summernote</div>
71
77
{% endhighlight %}
72
78
73
79
To use within a <code>form</code>, is pretty much the same as above, but rather than a <code>div</code>, we recommend using a <code>textarea</code> element inside a <code>form</code>, which should include a name attribute so when the form is submitted you can use that name to process the editors data on your backend. Also, if using Summernote inside a <code>form</code> to set the attribute <code>method="post"</code> to allow larger sized editor content to parse to the backend, if you don't your data either may not parse, or will be truncated.
for more detail api: [deep dive with api](/deep-dive/#api)
242
252
243
253
> ##### destroy and code
254
+
>
244
255
> After v0.7.0, direct jquery methods, `destroy` and `code` were removed for avoiding conflict with other jquery libraries. You can call this methods with summernote api.
245
256
246
257
{% include ad-doc.html %}
@@ -252,6 +263,7 @@ for more detail api: [deep dive with api](/deep-dive/#api)
252
263
Include libraries with lang file. eg) <code>summernote-ko-KR.js</code>.
0 commit comments