4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/loyal_core/action_helper/font_selector_helper.rb', line 4
def loyal_core_helper_font_selector *args
options = args.
selector = args.first || 'body'
html = ''
html << <<-HTML
<span class='loyal-core-font-size-selector'>
字体
<input type='hidden' name='font-selector-size' value='#{selector.html_safe}'/>
<a href='javascript:;' loyal-data-type-size='small'>小</a>
<a href='javascript:;' loyal-data-type-size='medium'>中</a>
<a href='javascript:;' loyal-data-type-size='large'>大</a>
</span>
HTML
html.html_safe
end
|