Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ckeditor4 elementRef line number 113 is not generic in angular #42

Closed
sanmscse opened this issue Jul 26, 2019 · 7 comments · Fixed by #40
Closed

ckeditor4 elementRef line number 113 is not generic in angular #42

sanmscse opened this issue Jul 26, 2019 · 7 comments · Fixed by #40

Comments

@sanmscse
Copy link

ckeditor4 elementRef line number 113 is not generic in angular

@ma2ciek
Copy link

ma2ciek commented Jul 26, 2019

The ElementRef is generic - see https://angular.io/api/core/ElementRef.

And I don't know which line you talk about and what's the real issue.

@sanmscse
Copy link
Author

image
When build angular code
using "npm start"

command window throw error on this line
i've installed ckeditor using
npm i ckeditor4-angular

@sanmscse
Copy link
Author

Hi @ma2ciek

can we display file blob in ckEditor
my file is a Word document i've read it from another API and have to display in ckEditor
bloburl = "blob:http://localhost:49842/d673f9dd-5653-413b-b5ff-429cf21191bf"

Can you help me to display this in ckEditor data

<ckeditor [(ngModel)]="mycontent"
#myckeditor="ngModel"
name="myckeditor"
required
[config]="ckeConfig"
debounce="500"
>

@ma2ciek
Copy link

ma2ciek commented Jul 26, 2019

Since you've installed the ckeditor4-angular you don't need to touch any source code. And the issue is that you use an old version of Angular, that's probably why the error shows up.

I'm not a specialist in the CKEditor 4 ecosystem, so I won't help you here. And AFAIK we don't provide any Word file loader, but I might be wrong.

@f1ames
Copy link
Contributor

f1ames commented Jul 26, 2019

Thanks @ma2ciek for checking this issue, it's related to #39.

@sanmscse at the moment Angular 6+ is supported. After #40 will be closed also Angular 5 will be supported and this issue should be solved, since it concerns the generic type you mentioned.

@sanmscse
Copy link
Author

Hi @f1ames , @ma2ciek , @Reinmar , @jodator

Can we load the blob or byte array (which might be .docx/.pdf)
can we load the content in ckEditor

i've tried in config.BaseHref = "blob:http://localhost:49842/d673f9dd-5653-413b-b5ff-429cf21191bf"

but not works. Can you suggest some ideas on this

Thanks

@f1ames
Copy link
Contributor

f1ames commented Jul 26, 2019

@sanmscse your last #42 (comment) is not related to Angular integration. If you have any issues or feature requests regarding CKEditor 4 you may report in ckeditor-dev repository.

As for handling blobs, CKEditor don't support it. You may use external code which will convert blob to HTML and then feed such data to CKEditor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants