A
A
Anton2020-10-19 16:35:22
PHP
Anton, 2020-10-19 16:35:22

Elfinder - how to generate editor1 for forms?

Hello.
Somehow it is possible to generate an id that we insert into the form, there are many forms and they have different ids, if you insert editor2 into all forms, it will work for one, and if you make editor2, editor3, and so on, then this is for a fixed number of numbers in forms, but I do not have them fixed on one page and I want to load editor2 to them.

<script type="text/javascript">
  var areas = Array('editor2');
  $.each(areas, function (i, area) {
    CKEDITOR.replace(area, {
      filebrowserBrowseUrl: '/elFinder/elfinder.html',
      filebrowserImageBrowseUrl: '/elFinder/elfinder.html',
      filebrowserWindowWidth: '1050',
      filebrowserWindowHeight: '300',
      height:['200px']
    });
  });
</script>


<textarea name="otvet" id="editor2" rows="5"></textarea>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question