/usr/share/tdiary/misc/plugin/draft.rb is in tdiary-plugin 3.1.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # -*- coding: utf-8; -*-
#
# draft.rb: save draft data to Web Storage automatically
#
# Copyright (c) MATSUOKA Kohei <http://www.machu.jp/>
# Distributed under the GPL
#
if /\A(form|edit|preview|showcomment)\z/ === @mode then
enable_js('draft.js')
end
add_edit_proc do
<<-EOS
<div class="draft">
下書き:
<select name="drafts"></select>
<button type="button" id="draft_load">読み込み</button>
</div>
EOS
end
|