ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/branches/stable-2.12.x/webapp/modules/pc/templates/inc_tinymce_textarea.tpl @ 7225

Last change on this file since 7225 was 7225, checked in by ebihara, 12 years ago

#2380:絵文字ボタンを押すと小窓ボタンが下に落ちていたのを修正

File size: 4.8 KB
Line 
1({if $smarty.const.OPENPNE_USE_DECORATION})
2<script type="text/javascript" src="./js/pne_decoration.js"></script>
3<script type="text/javascript" src="./js/tiny_mce/tiny_mce.js?r7140"></script>
4<script type="text/javascript">
5//<![CDATA[
6function 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        op_cmd : {
55            isEnabled : 1,
56            imageURL : "({t_img_url_skin filename=deco_op_cmd})"
57        }
58    }
59}
60//]]>
61</script>
62<script type="text/javascript" src="./js/pc_emoji_palet/pc_emoji_palet.js"></script>
63<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>&nbsp;<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>
64<div id="mce_editor_buttonmenu">
65({foreach from=$INC_HEADER_decoration_config item=item key=key})
66({if $item})
67<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>
68({/if})
69({/foreach})
70({if $smarty.const.OPENPNE_USE_ALBUM})
71<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>
72({/if})
73({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})
74<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>
75({else})
76<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>
77<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>
78<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>
79({/if})
80<a id="mce_textmode_button_op_cmd" href="#" style="margin-left:20px;" onclick="window.open('http://www.openpne.jp/cmd/')"><img src="({t_img_url_skin filename=deco_op_cmd})" alt="" /></a>
81
82({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})
83<script type="text/javascript">
84//<![CDATA[
85createEmojiPalletDoCoMo();
86//]]>
87</script>
88({else})
89<script type="text/javascript">
90//<![CDATA[
91createEmojiPalletDoCoMo();
92createEmojiPalletAu();
93createEmojiPalletSoftBank();
94//]]>
95({/if})
96</script>
97</div>
98
99<script type="text/javascript">
100//<![CDATA[
101pne_mce_editor_init();
102//]]>
103</script>
104
105({/if})
106
107<textarea id="mce_editor_textarea" name="({$_name|default:'body'})" rows="({$_rows|default:'15'})" cols="({$_cols|default:'50'})">({$_body})</textarea>
Note: See TracBrowser for help on using the repository browser.