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

Referencing a DOM node in Expression Error after uploading image #25

Closed
daon opened this issue Nov 24, 2014 · 8 comments
Closed

Referencing a DOM node in Expression Error after uploading image #25

daon opened this issue Nov 24, 2014 · 8 comments
Assignees
Labels

Comments

@daon
Copy link

daon commented Nov 24, 2014

Hi outsideris, first of all thank you for a great plugin!

I'm trying to get custom image upload to work but I get the Referencing a DOM node in Expression Error after the image is uploaded and I start to edit the content. I first thought it was something wrong with my code but I am able to reproduce the issue in your callback demo.

  1. Upload image
  2. Edit content
  3. Check console you should have the error
@outsideris outsideris added the bug label Nov 26, 2014
@outsideris outsideris self-assigned this Nov 26, 2014
@monad98
Copy link

monad98 commented Nov 26, 2014

+1

@monad98
Copy link

monad98 commented Dec 13, 2014

Hi, outsideris, any progress on this?

@outsideris
Copy link
Owner

@daon @monad98
What version of angular-summernote are you using?
It seems duplicated #20. It fixed in v0.3.0

@monad98
Copy link

monad98 commented Dec 13, 2014

@outsideris
of course latest version. 0.3.0
same problem as @daon happens.

@outsideris
Copy link
Owner

@monad98
Ok. I can reproduce it now.

@outsideris
Copy link
Owner

@daon @monad98 please check the issue in v0.3.1

@monad98
Copy link

monad98 commented Dec 26, 2014

@outsideris it works. Thank you.

@outsideris
Copy link
Owner

👍

outsideris referenced this issue in uncedric/angular-summernote Dec 27, 2014
I was getting this error while uploading images to the server

Uncaught TypeError: Cannot read property 'width' of undefined summernote.min.js:1
(anonymous function) summernote.min.js:1
(anonymous function) vendor.js:2
j vendor.js:2
k.fireWith vendor.js:2
e.(anonymous function) vendor.js:2
(anonymous function) summernote.min.js:1
d vendor.js:3
n.event.dispatch vendor.js:3
r.handle vendor.js:3


That problem was solved adding this "position:welEditable" to the imageUpload function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants