Fix tinymce js load
Change to full_name for page_context index
This commit is contained in:
parent
14c2c4e5e8
commit
63f904d3b0
|
@ -1,4 +1,4 @@
|
||||||
$(function() {
|
function load_tinymce() {
|
||||||
$('.tinymce_textarea').tinymce({
|
$('.tinymce_textarea').tinymce({
|
||||||
theme: 'advanced',
|
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",
|
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",
|
external_image_list_url : "js/image_list.js",
|
||||||
media_external_list_url : "js/media_list.js"
|
media_external_list_url : "js/media_list.js"
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
load_tinymce();
|
||||||
});
|
});
|
|
@ -6,3 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
load_tinymce();
|
||||||
|
</script>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<tr id="<%= dom_id page_context %>" class="with_action">
|
<tr id="<%= dom_id page_context %>" class="with_action">
|
||||||
<td>
|
<td>
|
||||||
<%= page_context.page.i18n_variable[I18n.locale] %>
|
<%= page_context.page.full_name %>
|
||||||
<div class="quick-edit">
|
<div class="quick-edit">
|
||||||
<ul class="nav nav-pills hide">
|
<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>
|
<li><%= link_to t('page_context.edit'), edit_panel_page_content_back_end_page_context_path(page_context) %></li>
|
||||||
|
|
Reference in New Issue