|
|
@@ -1,5 +1,4 @@ |
|
|
|
jQuery(document).ready(function () { |
|
|
|
initLcCkEditor(); |
|
|
|
//generateNotice('error', 'Ceci est une notice'); |
|
|
|
$('.action-delete').on('click', function(e) { |
|
|
|
e.preventDefault(); |
|
|
@@ -13,19 +12,22 @@ jQuery(document).ready(function () { |
|
|
|
deleteForm.trigger('submit'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
window.addEventListener('load', (event) => { |
|
|
|
initLcCkEditor(); |
|
|
|
}); |
|
|
|
/* CKEditor */ |
|
|
|
|
|
|
|
function initLcCkEditor(){ |
|
|
|
var elements = $( '.lc-ckeditor' ); |
|
|
|
|
|
|
|
log(elements); |
|
|
|
if(elements.length) { |
|
|
|
for (var i = 0; i < elements.length; ++i) { |
|
|
|
if($(elements[i]).data('config')==='simple_config'){ |
|
|
|
var editor = CKEDITOR.replace(elements[i], { |
|
|
|
CKEDITOR.replace(elements[i], { |
|
|
|
"toolbar": [ |
|
|
|
{ |
|
|
|
items: ['Bold', 'Italic', 'Underline', 'Strike'] |
|
|
@@ -38,7 +40,7 @@ function initLcCkEditor(){ |
|
|
|
'height': 100 |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
var editor = CKEDITOR.replace(elements[i], { |
|
|
|
CKEDITOR.replace(elements[i], { |
|
|
|
"toolbar": [ |
|
|
|
{ |
|
|
|
name: "styles", |