File: editor.rb

package info (click to toggle)
tdiary-contrib 5.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,576 kB
  • ctags: 1,957
  • sloc: ruby: 16,900; lisp: 514; xml: 451; php: 61; sql: 40; sh: 35; makefile: 33
file content (11 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#
# editor.rb - support writing using wiki/gfm notation.
#
# Copyright (c) 2012 MATSUOKA Kohei <kmachu@gmail.com>
# You can distribute it under GPL.
#

# load javascript
if /\A(form|edit|preview|showcomment)\z/ === @mode then
	enable_js('editor.js')
end