Commit 6de595a1 authored by 神楽坂玲奈's avatar 神楽坂玲奈

编辑器独立化

git-svn-id: http://glupx.googlecode.com/svn/trunk/Reliz@54 189f022a-1064-8ae2-3e6f-c4a67275c50b
parent 648dd122
......@@ -16,8 +16,7 @@
<%= f.text_field :topic %>
</div>-->
<div class="field">
<%= f.label t 'post.content' %><br />
<%= f.text_area :content %>
<%= render 'topics/editor', :content => @post.content %>
</div>
<div class="field">
<%= f.label t 'post.private' %><br />
......
<div class="editor">
<%= text_area_tag 'post[content]', content %>
<%# content是个传入的参数,可以直接当成局部变量来用 %>
</div>
\ No newline at end of file
<div class="editor_lite">
<span class="right">
<a href="post.php?action=reply&amp;fid=2&amp;tid=29727" onclick="return switchAdvanceMode(this.href)">高级模式</a>
<span class="pipe">|</span>
<span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&amp;fid=2" onclick="showWindow('newthread', this.href);return false;">发新话题</a></span>
</span><link rel="stylesheet" type="text/css" href="forumdata/cache/style_57_seditor.css?qfY">
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('fastpost', '[b]', '[/b]')">B</a>
<a href="javascript:;" title="颜色" class="tb_color" id="fastpostforecolor" onclick="showColorBox(this.id, 2, 'fastpost')">Color</a>
<a href="javascript:;" title="图片" class="tb_img" onclick="seditor_insertunit('fastpost', '[img]', '[/img]')">Image</a>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('fastpost', '[url]', '[/url]')">Link</a>
<a href="javascript:;" title="引用" class="tb_quote" onclick="seditor_insertunit('fastpost', '[quote]', '[/quote]')">Quote</a>
<a href="javascript:;" title="代码" class="tb_code" onclick="seditor_insertunit('fastpost', '[code]', '[/code]')">Code</a>
<a href="javascript:;" class="tb_smilies" id="fastpostsmilies" onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false">Smilies</a>
<script src="forumdata/cache/smilies_var.js?qfY" type="text/javascript" reload="1"></script>
<script type="text/javascript" reload="1">smilies_show('fastpostsmiliesdiv', 8, 'fastpost');</script>
</div>
</div>
\ No newline at end of file
......@@ -191,23 +191,8 @@
<input type="hidden" name="usesig" value="0">-->
<span id="fastpostreturn"></span>
<div class="editor_tb">
<span class="right">
<a href="post.php?action=reply&amp;fid=2&amp;tid=29727" onclick="return switchAdvanceMode(this.href)">高级模式</a>
<span class="pipe">|</span>
<span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&amp;fid=2" onclick="showWindow('newthread', this.href);return false;">发新话题</a></span>
</span><link rel="stylesheet" type="text/css" href="forumdata/cache/style_57_seditor.css?qfY">
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('fastpost', '[b]', '[/b]')">B</a>
<a href="javascript:;" title="颜色" class="tb_color" id="fastpostforecolor" onclick="showColorBox(this.id, 2, 'fastpost')">Color</a>
<a href="javascript:;" title="图片" class="tb_img" onclick="seditor_insertunit('fastpost', '[img]', '[/img]')">Image</a>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('fastpost', '[url]', '[/url]')">Link</a>
<a href="javascript:;" title="引用" class="tb_quote" onclick="seditor_insertunit('fastpost', '[quote]', '[/quote]')">Quote</a>
<a href="javascript:;" title="代码" class="tb_code" onclick="seditor_insertunit('fastpost', '[code]', '[/code]')">Code</a>
<a href="javascript:;" class="tb_smilies" id="fastpostsmilies" onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false">Smilies</a>
<script src="forumdata/cache/smilies_var.js?qfY" type="text/javascript" reload="1"></script>
<script type="text/javascript" reload="1">smilies_show('fastpostsmiliesdiv', 8, 'fastpost');</script>
</div></div>
<%= render 'topics/editor_lite' %>
<%= text_area_tag 'post[content]', nil, :id => :fastpostmessage, :rows => 5, :cols => 80, :tabindex => 4, :class => :txtarea %>
<p><%= submit_tag t("topic.reply"), :id => :replysubmit, :tabindex => 5 %>
<input id="fastpostrefresh" type="checkbox"> <label for="fastpostrefresh">回帖后跳转到最后一页</label></p><script type="text/javascript">if(getcookie('discuz_fastpostrefresh') == 1) {$('fastpostrefresh').checked=true;}</script>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
880
\ No newline at end of file
5860
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment