title: How to efficiently use multiple CKEditor5 instances on a page?
body: <p>I have a form with potentially 200+ inputs. It is required to use CKEditor5 for all inputs. However, if I load all 200 CKEditor5's at the same time, the page takes more than 10 seconds to open. The current implementation is as follows.</p>
  <p>Template:</p>
  <pre><code>&lt;mat-accordion&gt;
      &lt;mat-expansion-panel *ngFor=&quot;let question of questionList; let i = index&quot;&gt;
          &lt;!-- Other views here --&gt;
  
          &lt;ckeditor [editor]=&quot;editor&quot; [(ngModel)]=&quot;question.prompt&quot;&gt;&lt;/ckeditor&gt;
      &lt;/mat-expansion-panel&gt;
  &lt;/mat-accordion&gt;
  </code></pre>
  <p>Component:</p>
  <pre><code>import * as InlineEditor from '@ckeditor/ckeditor5-build-inline';
  // Other imports
  
  @Component({
    selector: 'app-questions',
    templateUrl: './questions.component.html',
    styleUrls: ['./questions.component.scss']
  })
  export class QuestionsComponent {
    @Input() questionList: QuestionModel[];
    editor = InlineEditor;
  
    // Other code
  }
  </code></pre>
  <p>How can I use CKEditor for all inputs without freezing the page or accordion animations? I tried a few things but none of them worked.</p>
  <p><a href="https://stackoverflow.com/a/53672506/7279624">This answer</a> proposes a solution but I don't know how to implement it.</p>
  <blockquote>
  <p>Initialize the editor only after clicking on an editable element.
  Destroy old editor on blur event or clicking on the second editable
  element and initialize new one on the given text - it would require
  creating a simple wrapper over the element</p>
  </blockquote>