Skip to content

[Bug]: Validators export conflicts with Angular's Validators #633

@MeAkib

Description

@MeAkib

What happened?

Currently, ngx-editor exports a Validators object:
import { Validators } from 'ngx-editor';

This name is the same as Angular’s built-in Validators
import { Validators } from '@angular/forms';

Because of this, IDE auto-imports (VS Code, WebStorm, etc.) often default to the wrong Validators, leading to confusion and wasted time for developers. This happens especially when working with Angular forms alongside ngx-editor.

Version

19.0.0

Angular Version

19

What browsers are you seeing the problem on?

No response

Link to reproduce

No response

Relevant log output

Willing to submit a PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions