got a working version of the inline editor
This commit is contained in:
parent
ebe149110b
commit
89020e7cf5
Binary file not shown.
Before Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.9 KiB |
@ -3,6 +3,7 @@
|
|||||||
#= require jquery_ujs
|
#= require jquery_ujs
|
||||||
#= require underscore
|
#= require underscore
|
||||||
#= require backbone
|
#= require backbone
|
||||||
|
#= require locomotive/backbone.sync
|
||||||
#= require locomotive/growl
|
#= require locomotive/growl
|
||||||
#= require locomotive/handlebars
|
#= require locomotive/handlebars
|
||||||
#= require locomotive/ICanHandlebarz
|
#= require locomotive/ICanHandlebarz
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
unless window.Aloha?
|
||||||
|
window.Aloha = {}
|
||||||
|
|
||||||
|
window.Aloha.settings =
|
||||||
|
logLevels: { 'error': true, 'warn': true, 'info': false, 'debug': false }
|
||||||
|
errorhandling: true
|
||||||
|
plugins:
|
||||||
|
format:
|
||||||
|
config: [ 'b', 'i', 'u','del','sub','sup', 'p', 'title', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'pre', 'removeFormat']
|
||||||
|
editables:
|
||||||
|
'.editable-short-text' : [ 'b', 'i', 'u' ]
|
||||||
|
|
||||||
|
link:
|
||||||
|
config: [ 'a' ]
|
||||||
|
editables:
|
||||||
|
'.editable-short-text': [ ]
|
||||||
|
|
||||||
|
list:
|
||||||
|
config: [ 'ul' ]
|
||||||
|
editables:
|
||||||
|
'.editable-short-text': [ ]
|
||||||
|
|
||||||
|
i18n:
|
||||||
|
available: ['en', 'fr', 'pt-BR', 'es', 'de', 'no', 'ru', 'nl']
|
||||||
|
|
||||||
|
sidebar:
|
||||||
|
disabled: true
|
@ -48,6 +48,10 @@
|
|||||||
var script = doc.createElement('script');
|
var script = doc.createElement('script');
|
||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
script.src = src;
|
script.src = src;
|
||||||
|
if (options && options.onload) {
|
||||||
|
script.onload = options.onload;
|
||||||
|
delete(options.onload);
|
||||||
|
}
|
||||||
for (var key in options) {
|
for (var key in options) {
|
||||||
script.setAttribute(key, options[key]);
|
script.setAttribute(key, options[key]);
|
||||||
}
|
}
|
||||||
|
@ -9,4 +9,6 @@ $.growl.settings.dockCss = {
|
|||||||
left: '0px',
|
left: '0px',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
zIndex: 50000
|
zIndex: 50000
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// $.growl.settings.displayTimeout = 500;
|
@ -27,15 +27,18 @@ class Locomotive.Views.InlinEditor.ApplicationView extends Backbone.View
|
|||||||
@$('#toolbar .inner').html(@toolbar_view.refresh().render().el)
|
@$('#toolbar .inner').html(@toolbar_view.refresh().render().el)
|
||||||
|
|
||||||
decorate_iframe: ->
|
decorate_iframe: ->
|
||||||
console.log('decorating iframe')
|
|
||||||
|
|
||||||
iframe = @iframe
|
iframe = @iframe
|
||||||
iframe.load =>
|
iframe.load =>
|
||||||
# add js / css
|
# add js / css
|
||||||
doc = iframe[0].contentWindow.document
|
doc = iframe[0].contentWindow.document
|
||||||
|
window.addStylesheet doc, '/assets/locomotive/aloha/css/aloha.css'
|
||||||
|
window.addJavascript doc, '/assets/locomotive/utils/aloha_settings.js'
|
||||||
window.addJavascript doc, '/assets/locomotive/aloha/lib/aloha.js',
|
window.addJavascript doc, '/assets/locomotive/aloha/lib/aloha.js',
|
||||||
'data-aloha-plugins': 'common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste'
|
'data-aloha-plugins': 'common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste'
|
||||||
window.addStylesheet doc, '/assets/locomotive/aloha/css/aloha.css'
|
onload: =>
|
||||||
|
@toolbar_view.enable()
|
||||||
|
iframe[0].contentWindow.Aloha.bind 'aloha-editable-deactivated', (event, editable) =>
|
||||||
|
@toolbar_view.change_editable_element editable.editable
|
||||||
|
|
||||||
# bind the resize event. When the iFrame's size changes, update its height
|
# bind the resize event. When the iFrame's size changes, update its height
|
||||||
iframe_content = iframe.contents().find('body')
|
iframe_content = iframe.contents().find('body')
|
||||||
@ -46,88 +49,4 @@ class Locomotive.Views.InlinEditor.ApplicationView extends Backbone.View
|
|||||||
iframe.css height: elem.outerHeight(true)
|
iframe.css height: elem.outerHeight(true)
|
||||||
|
|
||||||
# Resize the iFrame immediately.
|
# Resize the iFrame immediately.
|
||||||
iframe_content.resize()
|
iframe_content.resize()
|
||||||
|
|
||||||
# render: ->
|
|
||||||
# super
|
|
||||||
#
|
|
||||||
# console.log('rendering')
|
|
||||||
#
|
|
||||||
# @enable_iframe_auto_height()
|
|
||||||
#
|
|
||||||
# @foo()
|
|
||||||
#
|
|
||||||
# @toolbar_view = new Locomotive.Views.
|
|
||||||
#
|
|
||||||
# set_page: (attributes) ->
|
|
||||||
# @page = new Locomotive.Models.Page(attributes)
|
|
||||||
#
|
|
||||||
# window.foo = @page
|
|
||||||
#
|
|
||||||
# @$('#toolbar .inner').html(ich.toolbar(@page.toJSON()))
|
|
||||||
#
|
|
||||||
# enable_iframe_auto_height: ->
|
|
||||||
# console.log('decorating iframe')
|
|
||||||
#
|
|
||||||
# console.log(@$('#page iframe html'))
|
|
||||||
#
|
|
||||||
# # @$('#page iframe').iframeAutoHeight
|
|
||||||
# # debug: true
|
|
||||||
# # callback: (callbackObject) =>
|
|
||||||
# # $('body').css('overflow': 'visible')
|
|
||||||
#
|
|
||||||
# iframe = @$('#page iframe')
|
|
||||||
# iframe.load =>
|
|
||||||
# iframe_content = iframe.contents().find('body')
|
|
||||||
#
|
|
||||||
# # Bind the resize event. When the iframe's size changes, update its height as
|
|
||||||
# # well as the corresponding info div.
|
|
||||||
# iframe_content.resize ->
|
|
||||||
# elem = $(this)
|
|
||||||
#
|
|
||||||
# # Resize the IFrame.
|
|
||||||
# if elem.outerHeight(true) > $('body').outerHeight(true)
|
|
||||||
# iframe.css height: elem.outerHeight(true)
|
|
||||||
#
|
|
||||||
# # Update the info div width and height.
|
|
||||||
# # $('#iframe-info').text( 'IFRAME width: ' + elem.width() + ', height: ' + elem.height() );
|
|
||||||
#
|
|
||||||
# # Resize the Iframe and update the info div immediately.
|
|
||||||
# iframe_content.resize()
|
|
||||||
#
|
|
||||||
# foo: ->
|
|
||||||
# @$('#page iframe').load =>
|
|
||||||
# # console.log 'iframe loaded'
|
|
||||||
# doc = @$('#page iframe')[0].contentWindow.document
|
|
||||||
#
|
|
||||||
# script = doc.createElement('script')
|
|
||||||
# script.type = 'text/javascript'
|
|
||||||
# script.src = '/assets/locomotive/aloha/lib/aloha.js'
|
|
||||||
# script.setAttribute('data-aloha-plugins', 'common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste')
|
|
||||||
# doc.body.appendChild(script)
|
|
||||||
#
|
|
||||||
# stylesheet = doc.createElement('link')
|
|
||||||
# stylesheet.style = 'text/css'
|
|
||||||
# stylesheet.href = '/assets/locomotive/aloha/css/aloha.css'
|
|
||||||
# stylesheet.media = 'screen'
|
|
||||||
# stylesheet.rel = 'stylesheet'
|
|
||||||
# doc.head.appendChild(stylesheet)
|
|
||||||
#
|
|
||||||
# # <link href="/assets/locomotive/aloha/css/aloha.css" media="screen" rel="stylesheet" type="text/css" />
|
|
||||||
# # {{ '/assets/locomotive/aloha/css/aloha.css' | stylesheet_tag }}
|
|
||||||
#
|
|
||||||
# # $("body", doc).append(script)
|
|
||||||
#
|
|
||||||
# # $('body', doc).append('<script src="assets/locomotive/aloha/lib/aloha.js" data-aloha-plugins="common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste,common/block"></script>')
|
|
||||||
#
|
|
||||||
# # <script src="/assets/locomotive/aloha/lib/aloha.js" data-aloha-plugins="common/format,common/highlighteditables,common/list,common/link,common/undo,common/paste,common/block"></script>
|
|
||||||
# # $('body', doc).append('<p>Hello world</p>');
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# # register_page_content: (iframe) ->
|
|
||||||
# #
|
|
||||||
# #
|
|
||||||
# # console.log 'he he'
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
@ -7,7 +7,9 @@ class Locomotive.Views.InlinEditor.ToolbarView extends Backbone.View
|
|||||||
className: 'toolbar-view'
|
className: 'toolbar-view'
|
||||||
|
|
||||||
events:
|
events:
|
||||||
'change .edit input[type=checkbox]': 'toggle_inline_editing'
|
'change .editing-mode input[type=checkbox]': 'toggle_editing_mode'
|
||||||
|
'click .element-actions a.save': 'save_modifications'
|
||||||
|
'click .element-actions a.cancel': 'cancel_modifications'
|
||||||
|
|
||||||
initialize: ->
|
initialize: ->
|
||||||
super
|
super
|
||||||
@ -16,12 +18,42 @@ class Locomotive.Views.InlinEditor.ToolbarView extends Backbone.View
|
|||||||
super
|
super
|
||||||
$(@el).html(ich.toolbar(@model.toJSON()))
|
$(@el).html(ich.toolbar(@model.toJSON()))
|
||||||
|
|
||||||
@enable_edit_checkbox()
|
@enable_editing_mode_checkbox()
|
||||||
|
|
||||||
@
|
@
|
||||||
|
|
||||||
toggle_inline_editing: (event) ->
|
change_editable_element: (aloha_editable) ->
|
||||||
console.log('toggle_inline_editing !!!')
|
console.log('changing editable_element...')
|
||||||
|
|
||||||
|
window.bar = aloha_editable
|
||||||
|
|
||||||
|
element_id = aloha_editable.obj.attr('data-element-id')
|
||||||
|
@model.get('editable_elements').get(element_id).set
|
||||||
|
content: aloha_editable.getContents()
|
||||||
|
|
||||||
|
@$('.element-actions').show()
|
||||||
|
|
||||||
|
save_modifications: (event) ->
|
||||||
|
event.stopPropagation() & event.preventDefault()
|
||||||
|
|
||||||
|
previous_attributes = _.clone @model.attributes
|
||||||
|
|
||||||
|
@model.save {},
|
||||||
|
success: (model, response, xhr) =>
|
||||||
|
model.attributes = previous_attributes
|
||||||
|
@$('.element-actions').hide()
|
||||||
|
error: (model, xhr) =>
|
||||||
|
@$('.element-actions').hide()
|
||||||
|
|
||||||
|
cancel_modifications: (event) ->
|
||||||
|
event.stopPropagation() & event.preventDefault()
|
||||||
|
@options.target[0].contentWindow.location.href = @options.target[0].contentWindow.location.href;
|
||||||
|
|
||||||
|
enable: ->
|
||||||
|
@options.target[0].contentWindow.Aloha.settings.locale = window.locale;
|
||||||
|
@$('.editing-mode').show()
|
||||||
|
|
||||||
|
toggle_editing_mode: (event) ->
|
||||||
if $(event.target).is(':checked')
|
if $(event.target).is(':checked')
|
||||||
@editable_elements().aloha()
|
@editable_elements().aloha()
|
||||||
else
|
else
|
||||||
@ -30,8 +62,8 @@ class Locomotive.Views.InlinEditor.ToolbarView extends Backbone.View
|
|||||||
editable_elements: ->
|
editable_elements: ->
|
||||||
@options.target[0].contentWindow.Aloha.jQuery('.editable-long-text, .editable-short-text')
|
@options.target[0].contentWindow.Aloha.jQuery('.editable-long-text, .editable-short-text')
|
||||||
|
|
||||||
enable_edit_checkbox: ->
|
enable_editing_mode_checkbox: ->
|
||||||
@$('.edit input[type=checkbox]').checkToggle
|
@$('.editing-mode input[type=checkbox]').checkToggle
|
||||||
on_label_color: '#fff'
|
on_label_color: '#fff'
|
||||||
off_label_color: '#bbb'
|
off_label_color: '#bbb'
|
||||||
|
|
||||||
|
@ -10,5 +10,6 @@
|
|||||||
*= require codemirror/themes/default
|
*= require codemirror/themes/default
|
||||||
*= require locomotive/toggle.css
|
*= require locomotive/toggle.css
|
||||||
*= require locomotive/liquid_mode.css
|
*= require locomotive/liquid_mode.css
|
||||||
|
*= require_tree ./locomotive/shared
|
||||||
*= require_tree ./locomotive/backoffice
|
*= require_tree ./locomotive/backoffice
|
||||||
*/
|
*/
|
||||||
|
@ -5,30 +5,6 @@
|
|||||||
@import "helpers";
|
@import "helpers";
|
||||||
@import "box";
|
@import "box";
|
||||||
|
|
||||||
div.notice {
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
height: 90px;
|
|
||||||
|
|
||||||
background: transparent image-url("locomotive/form/growl-notice.png") repeat-x 0 0;
|
|
||||||
|
|
||||||
&.error, &.alert {
|
|
||||||
background-image: image-url("locomotive/form/growl-error.png");
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
position: relative;
|
|
||||||
top: 35px;
|
|
||||||
|
|
||||||
margin: 0px;
|
|
||||||
|
|
||||||
color: #fff;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 20px;
|
|
||||||
@include single-text-shadow(#333, 1px, 1px, 1px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ___ boxes ___ */
|
/* ___ boxes ___ */
|
||||||
|
|
||||||
#wrapper #content > div.inner .box {
|
#wrapper #content > div.inner .box {
|
||||||
|
@ -4,5 +4,6 @@
|
|||||||
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
||||||
*= require locomotive/blueprint/screen.css
|
*= require locomotive/blueprint/screen.css
|
||||||
*= require locomotive/toggle.css
|
*= require locomotive/toggle.css
|
||||||
|
*= require locomotive/shared/growl.css
|
||||||
*= require_tree ./inline_editor
|
*= require_tree ./inline_editor
|
||||||
*/
|
*/
|
@ -47,7 +47,7 @@
|
|||||||
@include single-text-shadow(#000, 0px, 1px, 0px);
|
@include single-text-shadow(#000, 0px, 1px, 0px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit {
|
.editing-mode {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
@ -63,5 +63,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.element-actions {
|
||||||
|
float: right;
|
||||||
|
margin-right: 10px;
|
||||||
|
line-height: 50px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
29
app/assets/stylesheets/locomotive/shared/growl.css.scss
Normal file
29
app/assets/stylesheets/locomotive/shared/growl.css.scss
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
@import "compass/css3/images";
|
||||||
|
@import "compass/css3/text-shadow";
|
||||||
|
|
||||||
|
div.notice {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 80px;
|
||||||
|
|
||||||
|
margin-top: 10px;
|
||||||
|
|
||||||
|
@include background-image(linear-gradient(rgba(102, 176, 71, 0.9), rgba(111, 191, 77, 0.9) 80%, rgba(104, 180, 72, 0.9)));
|
||||||
|
border-bottom: 2px solid rgba(88, 153, 62, 0.9);
|
||||||
|
|
||||||
|
&.error, &.alert {
|
||||||
|
@include background-image(linear-gradient(rgba(212, 64, 64, 0.9), rgba(230, 69, 69, 0.9) 70%, rgba(216, 65, 65, 0.9)));
|
||||||
|
border-bottom: 2px solid rgba(192, 57, 57, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 80px;
|
||||||
|
|
||||||
|
margin: 0px;
|
||||||
|
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 20px;
|
||||||
|
@include single-text-shadow(#333, 1px, 1px, 1px);
|
||||||
|
}
|
||||||
|
}
|
@ -8,21 +8,21 @@ module Locomotive
|
|||||||
|
|
||||||
before_filter :require_site
|
before_filter :require_site
|
||||||
|
|
||||||
before_filter :authenticate_locomotive_account!, :only => [:edit]
|
before_filter :authenticate_locomotive_account!, :only => [:show_toolbar]
|
||||||
|
|
||||||
before_filter :validate_site_membership, :only => [:edit]
|
before_filter :validate_site_membership, :only => [:show_toolbar]
|
||||||
|
|
||||||
|
def show_toolbar
|
||||||
|
render :layout => false
|
||||||
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
render_locomotive_page
|
render_locomotive_page
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
if params[:noiframe]
|
@editing = true
|
||||||
@editing = true
|
render_locomotive_page
|
||||||
render_locomotive_page
|
|
||||||
else
|
|
||||||
render :layout => false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -8,18 +8,11 @@ module Locomotive
|
|||||||
def call(env)
|
def call(env)
|
||||||
response = @app.call(env)
|
response = @app.call(env)
|
||||||
|
|
||||||
# if env['warden'].authenticated?(:locomotive_account) &&
|
|
||||||
# !env['PATH_INFO'].starts_with?("/assets") &&
|
|
||||||
# !env['PATH_INFO'].starts_with?("/#{Locomotive.mounted_on}/") &&
|
|
||||||
# !env['PATH_INFO'].ends_with?("/edit")
|
|
||||||
|
|
||||||
Rails.logger.debug "headers = #{response[1].inspect}"
|
|
||||||
|
|
||||||
unless response[1]['Editable'].blank?
|
unless response[1]['Editable'].blank?
|
||||||
Rails.logger.debug "==> #{ENV['PATH_INFO'].inspect}, warden ? #{env['warden'].inspect} /#{env['warden'].user} / #{env['warden'].authenticated?(:locomotive_account)}"
|
Rails.logger.debug "==> #{ENV['PATH_INFO'].inspect}, warden ? #{env['warden'].inspect} /#{env['warden'].user} / #{env['warden'].authenticated?(:locomotive_account)}"
|
||||||
|
|
||||||
html = response.last.body.to_s.gsub '</body>', %(
|
html = response.last.body.to_s.gsub '</body>', %(
|
||||||
<a href="_edit">Edit</a>
|
<a href="_admin">Admin</a>
|
||||||
</body>
|
</body>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,9 +24,7 @@
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
window.application_view = new Locomotive.Views.InlinEditor.ApplicationView({
|
window.application_view = new Locomotive.Views.InlinEditor.ApplicationView();
|
||||||
flash: #{flash.to_json}
|
|
||||||
});
|
|
||||||
window.application_view.render();
|
window.application_view.render();
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -35,13 +33,17 @@
|
|||||||
|
|
||||||
%h1 {{title}}
|
%h1 {{title}}
|
||||||
|
|
||||||
.edit
|
.editing-mode{ :style => 'display: none' }
|
||||||
%label Editing mode:
|
%label Editing mode:
|
||||||
= check_box_tag 'edit', '1', false
|
= check_box_tag 'edit', '1', false
|
||||||
|
|
||||||
|
.element-actions{ :style => 'display: none' }
|
||||||
|
= link_to t('.save'), '#', :class => 'button save'
|
||||||
|
= link_to t('.cancel'), '#', :class => 'button cancel'
|
||||||
|
|
||||||
%body
|
%body
|
||||||
#page
|
#page
|
||||||
%iframe{ :src => %(#{request.fullpath}?noiframe=true') , :scrolling => 'no', :frameborder => '0' }
|
%iframe{ :src => request.fullpath.gsub('_admin', '_edit'), :scrolling => 'no', :frameborder => '0' }
|
||||||
|
|
||||||
#toolbar
|
#toolbar
|
||||||
.background
|
.background
|
@ -65,10 +65,12 @@ Rails.application.routes.draw do
|
|||||||
resources :locomotive_entry_submissions, :controller => 'locomotive/public/content_entries', :path => 'entry_submissions/:slug'
|
resources :locomotive_entry_submissions, :controller => 'locomotive/public/content_entries', :path => 'entry_submissions/:slug'
|
||||||
|
|
||||||
# magic urls
|
# magic urls
|
||||||
# match '/editable' => 'locomotive/public/rendering#edit', :path => '/'
|
match '/_admin' => 'locomotive/public/pages#show_toolbar'
|
||||||
|
match '*path/_admin' => 'locomotive/public/pages#show_toolbar'
|
||||||
|
|
||||||
|
match '/_edit' => 'locomotive/public/pages#edit'
|
||||||
|
match '*path/_edit' => 'locomotive/public/pages#edit'
|
||||||
|
|
||||||
match '/' => 'locomotive/public/pages#show'
|
match '/' => 'locomotive/public/pages#show'
|
||||||
match '/edit' => 'locomotive/public/pages#edit'
|
|
||||||
match '*path/edit' => 'locomotive/public/pages#edit'
|
|
||||||
# match '_/*path' => 'locomotive/public/rendering#show'
|
|
||||||
match '*path' => 'locomotive/public/pages#show'
|
match '*path' => 'locomotive/public/pages#show'
|
||||||
end
|
end
|
16
doc/TODO
16
doc/TODO
@ -72,9 +72,19 @@ x edit my site
|
|||||||
- back to default locale (if changed in settings)
|
- back to default locale (if changed in settings)
|
||||||
- front
|
- front
|
||||||
- inline editor
|
- inline editor
|
||||||
- remove inline-editor tag
|
x rack
|
||||||
- rack
|
x iframe
|
||||||
- iframe
|
(- remove inline-editor tag)
|
||||||
|
- save editable elements
|
||||||
|
- notification (growl)
|
||||||
|
- i18n
|
||||||
|
- change page
|
||||||
|
- aloha:
|
||||||
|
- i18n
|
||||||
|
- insert image
|
||||||
|
- remove sidebar
|
||||||
|
|
||||||
|
|
||||||
- bugs:
|
- bugs:
|
||||||
- unable to toggle the "required" check_boxes for content types
|
- unable to toggle the "required" check_boxes for content types
|
||||||
|
|
||||||
|
10
vendor/assets/javascripts/locomotive/aloha/lib/aloha/nls/fr/i18n.js
vendored
Normal file
10
vendor/assets/javascripts/locomotive/aloha/lib/aloha/nls/fr/i18n.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
define( {
|
||||||
|
'floatingmenu.tab.format': 'Mise en page',
|
||||||
|
'floatingmenu.tab.insert': 'Insertion',
|
||||||
|
'yes': 'Oui',
|
||||||
|
'no': 'Non',
|
||||||
|
'cancel': 'Annuel',
|
||||||
|
'repository.no_item_found': 'Aucun élément trouvé.',
|
||||||
|
'repository.loading': 'Chargement',
|
||||||
|
'repository.no_items_found_yet': 'Aucun élément trouvé...'
|
||||||
|
} );
|
@ -1,20 +1,21 @@
|
|||||||
define( {
|
define( {
|
||||||
'root': {
|
'root': {
|
||||||
'plugin.abbr.floatingmenu.tab.abbr': 'Abbreviation',
|
'plugin.abbr.floatingmenu.tab.abbr': 'Abbreviation',
|
||||||
'floatingmenu.tab.format': 'Format',
|
'floatingmenu.tab.format': 'Format',
|
||||||
'floatingmenu.tab.insert': 'Insert',
|
'floatingmenu.tab.insert': 'Insert',
|
||||||
'yes': 'Yes',
|
'yes': 'Yes',
|
||||||
'no': 'No',
|
'no': 'No',
|
||||||
'cancel': 'Cancel',
|
'cancel': 'Cancel',
|
||||||
'repository.no_item_found': 'No item found.',
|
'repository.no_item_found': 'No item found.',
|
||||||
'repository.loading': 'Loading',
|
'repository.loading': 'Loading',
|
||||||
'repository.no_items_found_yet': 'No items found yet...'
|
'repository.no_items_found_yet': 'No items found yet...'
|
||||||
},
|
},
|
||||||
'de': true
|
'de': true,
|
||||||
/* 'eo': true,
|
'fr': true
|
||||||
'fi': true,
|
/* 'eo': true,
|
||||||
'fr': true,
|
'fi': true,
|
||||||
'it': true,
|
|
||||||
'pl': true,
|
'it': true,
|
||||||
'ru': true*/
|
'pl': true,
|
||||||
|
'ru': true*/
|
||||||
} );
|
} );
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user