#
# draft.rb: save draft data to Web Storage automatically
#
# Copyright (c) MATSUOKA Kohei
# Distributed under the GPL2 or any later version.
#
if /\A(form|edit|preview|showcomment)\z/ === @mode then
enable_js('draft.js')
end
add_edit_proc do
<<-EOS