Skip to content

Editor is not showing and giving an error in production(Angular8). #157

@muhazzib

Description

@muhazzib

Ckeditor5 is working fine in development mode but giving an error in production.
Production Mode Error
Screenshot_33
Screenshot_34
Code
TypeScript File

import { Component, OnInit, DoCheck } from '@angular/core';
import * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';
import { ConfigService } from '../../services/config.service';
import { ChallengesService } from '../services/challenges.service';
import { Challenge } from '../interfaces/challenge';
import { Condition } from '../interfaces/condition';
import { Router, ActivatedRoute } from '@angular/router';
@Component({
  selector: 'app-create-challenge',
  templateUrl: './create-challenge.component.html',
  styleUrls: ['./create-challenge.component.scss']
})
export class CreateChallengeComponent implements OnInit, DoCheck {
  public Editor = ClassicEditor;
  showEditor = false;
  editorConfig = {
    placeholder: 'Type the content here!',
    toolbar: ['bold', 'italic']
  }
}

HTML

<ckeditor
   class="editor"
   [config]="editorConfig" [editor]="Editor"
   name="description"
   [(ngModel)]="translation.description"></ckeditor>

Configuration

import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
@NgModule({
declarations: [...],
imports: [CKEditorModule],
 providers: [...]
})

Versions:
"@ckeditor/ckeditor5-angular": "^1.1.0"
"@ckeditor/ckeditor5-build-classic": "^12.4.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolution:duplicateThis issue is a duplicate of another issue and was merged into it.resolution:resolvedThis issue was already resolved (e.g. by another ticket).type:bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions