Fix tinymce js load

Change to full_name for page_context index
This commit is contained in:
Christophe Vilayphiou 2012-05-10 20:36:19 +08:00
parent 14c2c4e5e8
commit 63f904d3b0
3 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
$(function() {
function load_tinymce() {
$('.tinymce_textarea').tinymce({
theme: 'advanced',
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
@ -22,4 +22,8 @@ $(function() {
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js"
});
}
$(document).ready(function() {
load_tinymce();
});

View File

@ -6,3 +6,7 @@
</div>
<% end %>
<% end %>
<script>
load_tinymce();
</script>

View File

@ -1,7 +1,7 @@
<tr id="<%= dom_id page_context %>" class="with_action">
<td>
<%= page_context.page.i18n_variable[I18n.locale] %>
<%= page_context.page.full_name %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('page_context.edit'), edit_panel_page_content_back_end_page_context_path(page_context) %></li>