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

Changeset 5907


Ignore:
Timestamp:
Mar 21, 2008, 2:00:08 AM (14 years ago)
Author:
ebihara
Message:

#333:画面使用に従い、ラジオボタンでモードの切り替えをするようにした

Location:
OpenPNE/branches/work/ebihara/prj_deco_diary
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_deco_diary/public_html/js/pne.js

    r5905 r5907  
    3636        inline_styles : false
    3737    });
     38
     39    var textmode_checkbox = document.getElementById("mce_editor_mode_changer_1");
     40    var previewmode_checkbox = document.getElementById("mce_editor_mode_changer_2");
     41    if (previewmode_checkbox.checked) {
     42        textmode_checkbox.checked = true;
     43        previewmode_checkbox.checked = false;
     44    }
    3845}
    3946
  • OpenPNE/branches/work/ebihara/prj_deco_diary/webapp/modules/pc/templates/h_diary_add.tpl

    r5905 r5907  
    373373
    374374({***** WYSIWYG *****})
     375<input type="radio" name="mce_editor_mode_changer" id="mce_editor_mode_changer_1" onchange="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" onchange="pne_toggle_mce_editor('mce_editor_textarea')"><label for="mce_editor_mode_changer_2">プレビューモード</label>
     376
     377<div id="mce_editor_buttonmenu">
     378<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:b');"><img src="({t_img_url_skin filename=deco_op_b})" alt="太字"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:u');"><img src="({t_img_url_skin filename=deco_op_u})" alt="下線"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:s');"><img src="({t_img_url_skin filename=deco_op_s})" alt="取り消し線"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:i');"><img src="({t_img_url_skin filename=deco_op_i})" alt="斜体"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:large');"><img src="({t_img_url_skin filename=deco_op_large})" alt="大きめの文字"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:small');"><img src="({t_img_url_skin filename=deco_op_small})" alt="小さめの文字"></a>
     379</div>
     380<textarea id="mce_editor_textarea" class="text" name="body" rows="15" cols="50" style="width:415px">({$form_val.body})</textarea>
    375381<script type="text/javascript">
    376382function pne_mce_editor_get_image_url()
     
    389395pne_mce_editor_init();
    390396</script>
    391 
    392 <div id="mce_editor_buttonmenu">
    393 <a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:b');"><img src="({t_img_url_skin filename=deco_op_b})" alt="太字"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:u');"><img src="({t_img_url_skin filename=deco_op_u})" alt="下線"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:s');"><img src="({t_img_url_skin filename=deco_op_s})" alt="取り消し線"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:i');"><img src="({t_img_url_skin filename=deco_op_i})" alt="斜体"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:large');"><img src="({t_img_url_skin filename=deco_op_large})" alt="大きめの文字"></a>&nbsp;<a href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', 'op:small');"><img src="({t_img_url_skin filename=deco_op_small})" alt="小さめの文字"></a>
    394 </div>
    395 <textarea id="mce_editor_textarea" class="text" name="body" rows="15" cols="50" style="width:415px">({$form_val.body})</textarea>
    396 <a href="#" onclick='pne_toggle_mce_editor("mce_editor_textarea")'>モード切替</a>
    397397({***** WYSIWYG *****})
    398398
Note: See TracChangeset for help on using the changeset viewer.