-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
resolution:duplicateThis issue is a duplicate of another issue and was merged into it.This issue is a duplicate of another issue and was merged into it.resolution:resolvedThis issue was already resolved (e.g. by another ticket).This issue was already resolved (e.g. by another ticket).type:bug
Description
Ckeditor5 is working fine in development mode but giving an error in production.
Production Mode Error


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
Labels
resolution:duplicateThis issue is a duplicate of another issue and was merged into it.This issue is a duplicate of another issue and was merged into it.resolution:resolvedThis issue was already resolved (e.g. by another ticket).This issue was already resolved (e.g. by another ticket).type:bug