Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
ckeditor 5 id with array not appear

If I use this code ckeditor does not appear

              $value = 'categories_description_' . $languages[$i]['id'] . '[' . $languages[$i]['id'] . ']'; // ====> here ==> categories_description_[1]
              echo HTMLOverrideAdmin::textAreaCkeditor($value, 'soft', '750', '300', (isset($categories_description[$languages[$i]['id']]) ? str_replace('& ', '& ', trim($categories_description[$languages[$i]['id']])) : $CLICSHOPPING_CategoriesAdmin->getCategoryDescription($cInfo->categories_id, $languages[$i]['id'])), 'id="' . $value . '"'); ?>

===> result example : <textarea name="categories_description_1[1]" id="categories_description_1[1]" />

If I use this code ckeditor appear

          $value = 'categories_description_' . $languages[$i]['id']; /// ===> here  ==> categories_description_1
          echo HTMLOverrideAdmin::textAreaCkeditor($value, 'soft', '750', '300', (isset($categories_description[$languages[$i]['id']]) ? str_replace('& ', '&amp; ', trim($categories_description[$languages[$i]['id']])) : $CLICSHOPPING_CategoriesAdmin->getCategoryDescription($cInfo->categories_id, $languages[$i]['id'])), 'id="' . $value . '"'); ?>

I do not understand why we can not use an array inside the script ckeditor. I need to display ckeditor for multilanguage approach

categories_description_[1] ... categories_description_[2] allow to save my data inside my db in function of the language.

example of the js (not work) with categories_description_1[1] :

ClassicEditor
    .create(document.querySelector('#categories_description_1[1]') , {
        toolbar: ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'imageUpload', 'ckfinder', 'blockQuote', 'insertTable', 'mediaEmbed', 'undo', 'redo', '|', 'help']
    } )

example of the js (work) with categories_description_1 :

ClassicEditor
    .create(document.querySelector('#categories_description_1[1]') , {
        toolbar: ['heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'imageUpload', 'ckfinder', 'blockQuote', 'insertTable', 'mediaEmbed', 'undo', 'redo', '|', 'help']
    } )

thank you.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!