Quellcode durchsuchen

Correctif edition product

feature/export_comptable
Fab vor 4 Jahren
Ursprung
Commit
17fbaaff2a
3 geänderte Dateien mit 10 neuen und 5 gelöschten Zeilen
  1. +7
    -5
      ShopBundle/Resources/public/js/backend/script/default/init-edit.js
  2. +2
    -0
      ShopBundle/Resources/public/js/backend/script/productfamily/vuejs-product-family.js
  3. +1
    -0
      ShopBundle/Resources/views/backend/form/ckeditor_widget.html.twig

+ 7
- 5
ShopBundle/Resources/public/js/backend/script/default/init-edit.js Datei anzeigen

@@ -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",

+ 2
- 0
ShopBundle/Resources/public/js/backend/script/productfamily/vuejs-product-family.js Datei anzeigen

@@ -204,6 +204,7 @@ $(window).on('load', function () {
this.title = toPlainText(this.title)
this.title = toPlainText(this.title)
this.title = toPlainText(this.title);
this.propertyExpirationDate = toPlainText(this.propertyExpirationDate);

this.$nextTick(function () {

@@ -467,6 +468,7 @@ $(window).on('load', function () {
this.title = toPlainText(this.title)
this.title = toPlainText(this.title)
this.title = toPlainText(this.title)
this.propertyExpirationDate = toPlainText(this.propertyExpirationDate);


this.isMounted = true;

+ 1
- 0
ShopBundle/Resources/views/backend/form/ckeditor_widget.html.twig Datei anzeigen

@@ -15,6 +15,7 @@
{% endblock %}

{% block _ckeditor_javascript %}

{# {% if autoload %}
<script type="text/javascript">
var CKEDITOR_BASEPATH = "{{ ckeditor_base_path(base_path) }}";

Laden…
Abbrechen
Speichern