fixes to note fonts

This commit is contained in:
albert
2013-02-17 23:51:53 -05:00
parent b76ce8c95c
commit 327af0e93d
2 changed files with 2 additions and 4 deletions

View File

@@ -181,7 +181,7 @@ class DText
def self.sanitize(text)
Sanitize.clean(
text,
:elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i),
:elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i font),
:attributes => {
"a" => %w(href title style),
"span" => %w(class style),

View File

@@ -1,3 +1 @@
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>">
<%= raw DText.sanitize(note.body) %>
</article>
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>"><%= raw DText.sanitize(note.body) %></article>