1 | ({if $smarty.const.OPENPNE_USE_DECORATION}) |
---|
2 | <script type="text/javascript" src="./js/pne_decoration.js?r7140"></script> |
---|
3 | <script type="text/javascript" src="./js/tiny_mce/tiny_mce.js?r7140"></script> |
---|
4 | <script type="text/javascript"> |
---|
5 | //<![CDATA[ |
---|
6 | function pne_mce_editor_get_config() |
---|
7 | { |
---|
8 | return { |
---|
9 | op_b : { |
---|
10 | isEnabled : ({$INC_HEADER_decoration_config.op_b}), |
---|
11 | imageURL : "({t_img_url_skin filename=deco_op_b})" |
---|
12 | }, |
---|
13 | op_u : { |
---|
14 | isEnabled : ({$INC_HEADER_decoration_config.op_u}), |
---|
15 | imageURL : "({t_img_url_skin filename=deco_op_u})" |
---|
16 | }, |
---|
17 | op_s : { |
---|
18 | isEnabled : ({$INC_HEADER_decoration_config.op_s}), |
---|
19 | imageURL : "({t_img_url_skin filename=deco_op_s})" |
---|
20 | }, |
---|
21 | op_i : { |
---|
22 | isEnabled : ({$INC_HEADER_decoration_config.op_i}), |
---|
23 | imageURL : "({t_img_url_skin filename=deco_op_i})" |
---|
24 | }, |
---|
25 | op_large : { |
---|
26 | isEnabled : ({$INC_HEADER_decoration_config.op_large}), |
---|
27 | imageURL : "({t_img_url_skin filename=deco_op_large})" |
---|
28 | }, |
---|
29 | op_small : { |
---|
30 | isEnabled : ({$INC_HEADER_decoration_config.op_small}), |
---|
31 | imageURL : "({t_img_url_skin filename=deco_op_small})" |
---|
32 | }, |
---|
33 | op_color : { |
---|
34 | isEnabled : ({$INC_HEADER_decoration_config.op_color}), |
---|
35 | imageURL : "({t_img_url_skin filename=deco_op_color})" |
---|
36 | }, |
---|
37 | op_image : { |
---|
38 | isEnabled : ({$smarty.const.OPENPNE_USE_ALBUM}), |
---|
39 | imageURL : "({t_img_url_skin filename=deco_op_image})", |
---|
40 | contentURL : "({t_url _html=0 m=pc a=page_h_album_insert_dialog})" |
---|
41 | }, |
---|
42 | op_emoji_docomo : { |
---|
43 | isEnabled : 1, |
---|
44 | imageURL : "({t_img_url_skin filename=deco_op_emoji_docomo})" |
---|
45 | }, |
---|
46 | op_emoji_au : { |
---|
47 | isEnabled : ({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})0({else})1({/if}), |
---|
48 | imageURL : "({t_img_url_skin filename=deco_op_emoji_au})" |
---|
49 | }, |
---|
50 | op_emoji_softbank : { |
---|
51 | isEnabled : ({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})0({else})1({/if}), |
---|
52 | imageURL : "({t_img_url_skin filename=deco_op_emoji_softbank})" |
---|
53 | } |
---|
54 | } |
---|
55 | } |
---|
56 | //]]> |
---|
57 | </script> |
---|
58 | <script type="text/javascript" src="./js/pc_emoji_palet/pc_emoji_palet.js?r7143"></script> |
---|
59 | <input type="radio" name="mce_editor_mode_changer" id="mce_editor_mode_changer_1" onclick="pne_toggle_mce_editor('mce_editor_textarea')" checked="checked" /><label for="mce_editor_mode_changer_1">テキストモード</label> <input type="radio" name="mce_editor_mode_changer" id="mce_editor_mode_changer_2" onclick="pne_toggle_mce_editor('mce_editor_textarea')" /><label for="mce_editor_mode_changer_2">プレビューモード</label> |
---|
60 | <div id="mce_editor_buttonmenu"> |
---|
61 | ({foreach from=$INC_HEADER_decoration_config item=item key=key}) |
---|
62 | ({if $item}) |
---|
63 | <a id="mce_textmode_button_({$key})" href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', '({$key|replace:"_":":"})');"><img src="({t_img_url_skin filename=deco_`$key`})" alt="" /></a> |
---|
64 | ({/if}) |
---|
65 | ({/foreach}) |
---|
66 | ({if $smarty.const.OPENPNE_USE_ALBUM}) |
---|
67 | <a id="mce_textmode_button_op_image" href="#" onclick="window.open('({t_url m=pc a=page_h_album_insert_dialog})', '', 'width=600,height=550,toolbar=no,scrollbars=yes,left=10,top=10')"><img src="({t_img_url_skin filename=deco_op_image})" alt="" /></a> |
---|
68 | ({/if}) |
---|
69 | ({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC}) |
---|
70 | <a id="mce_textmode_button_op_emoji_docomo" href="#" onclick="togglePallet('epDocomo');"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a> |
---|
71 | <script type="text/javascript"> |
---|
72 | //<![CDATA[ |
---|
73 | createEmojiPalletDoCoMo(); |
---|
74 | //]]> |
---|
75 | </script> |
---|
76 | ({else}) |
---|
77 | <a id="mce_textmode_button_op_emoji_docomo" href="#" onclick="togglePallet('epDocomo');"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a> |
---|
78 | <a id="mce_textmode_button_op_emoji_au" href="#" onclick="togglePallet('epAu');"><img src="({t_img_url_skin filename=deco_op_emoji_au})" alt="" /></a> |
---|
79 | <a id="mce_textmode_button_op_emoji_softbank" href="#" onclick="togglePallet('epSb');"><img src="({t_img_url_skin filename=deco_op_emoji_softbank})" alt="" /></a> |
---|
80 | <script type="text/javascript"> |
---|
81 | //<![CDATA[ |
---|
82 | createEmojiPalletDoCoMo(); |
---|
83 | createEmojiPalletAu(); |
---|
84 | createEmojiPalletSoftBank(); |
---|
85 | //]]> |
---|
86 | </script> |
---|
87 | ({/if}) |
---|
88 | </div> |
---|
89 | |
---|
90 | <script type="text/javascript"> |
---|
91 | //<![CDATA[ |
---|
92 | pne_mce_editor_init(); |
---|
93 | //]]> |
---|
94 | </script> |
---|
95 | |
---|
96 | ({/if}) |
---|
97 | |
---|
98 | <textarea id="mce_editor_textarea" name="({$_name|default:'body'})" rows="({$_rows|default:'15'})" cols="({$_cols|default:'50'})">({$_body})</textarea> |
---|