From 835ef9751081a60be2749f9c61b075fc45a1436c Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Tue, 12 Aug 2014 11:22:37 +0800
Subject: [PATCH] =?UTF-8?q?wiki=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/wiki/_content.html.erb | 1 +
app/views/wiki/edit.html.erb | 12 ++++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/app/views/wiki/_content.html.erb b/app/views/wiki/_content.html.erb
index 60b6a7452..fcfcc1351 100644
--- a/app/views/wiki/_content.html.erb
+++ b/app/views/wiki/_content.html.erb
@@ -1,4 +1,5 @@
<%= textilizable content, :text, :attachments => content.page.attachments,
:edit_section_links => (@sections_editable && {:controller => 'wiki', :action => 'edit', :project_id => @page.project, :id => @page.title}) %>
+ <%#= content.text.html_safe %>
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index 85b964a9b..35f905eef 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -1,5 +1,6 @@
<%= wiki_page_breadcrumb(@page) %>
+
<%= h @page.pretty_title %>
<%= form_for @content, :as => :content,
@@ -12,8 +13,15 @@
<% end %>
<%= error_messages_for 'content' %>
+
+
<%=text_area_tag 'content[text]', @text, :required => true, :id => 'editor02', :cols => 100, :rows => 25 %>
+
+
+
-<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25,
+<%#= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25,
:class => 'wiki-edit', :accesskey => accesskey(:edit) %>