Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix textile formatting so it is displayed in github readme #369

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions readme.textile
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ This will override only the toolbar template for html, and all others will use t

h3. Stylesheets

It is possible to supply a number of stylesheets for inclusion in the editor `<iframe>`:
It is possible to supply a number of stylesheets for inclusion in the editor `&lt;iframe&gt;`:

<pre>
<pre language='javascript'>
$('#some-textarea').wysihtml5({
"stylesheets": ["/path/to/editor.css"]
});
Expand All @@ -121,7 +121,7 @@ h3. Events

Wysihtml5 exposes a "number of events":https://github.com/xing/wysihtml5/wiki/Events. You can hook into these events when initialising the editor:

<pre>
<pre language='javascript'>
$('#some-textarea').wysihtml5({
"events": {
"load": function() {
Expand Down Expand Up @@ -183,7 +183,6 @@ var wysihtml5Editor = $('#some-textarea').data("wysihtml5").editor;
wysihtml5Editor.composer.commands.exec("bold");
</pre>


h2. I18n

You can use Bootstrap-wysihtml5 in other languages. There are some translations available in the src/locales directory. You can include your desired one after the plugin and pass its key to the editor. Example:
Expand Down