-
Notifications
You must be signed in to change notification settings - Fork 1
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
Wrap with Abbreviation return error #1
Comments
I can't get any error, but the style isn't applied. You may have to report it to jN.
I will try this later. |
Sure, but style element doesn't have Hmm I have few questions:
|
Latest commit with branch master. Currently it is emmetio/emmet@3a946a2 I will look into this.
It uses emmet's builtin menu. It looks like:
Maybe I can make it work like keymap. |
It looks like a bug in emmet. It doesn't provide https://github.com/emmetio/emmet/blob/master/lib/action/updateImageSize.js#L95 |
Fixed in v0.2.0 |
Thx for fast fix, now I can jump from old Zen Coding to Emmet and make more test. Btw., "Encode\Decode data:URL image" now works too, but I'm not sure what decode should do, because now in NPP I don't see any result, in Emmet example display dialog box for new path. Ah and one more thing, can you add to emmet.menu.json some marker for separator? I see that jN have that possibility |
Emmet will use the path to save the image file to disk and I don't think it would remember the original path. Also, it is using a synchronously prompt, I don't know how to implement it in jN: Currently I just always send empty string: |
Hmm, so is any difference beetwen this "synchronously prompt" and prompt using in: |
In But we can't do this with "Encode\Decode data:URL image", you can see that the prompt is always called when running Dialog.js is a JavaScript module wrapping IMHO, it would be better if emmet can change its interface. Using callback is much more convenient in JavaScript. |
I have to correct that the size param is optional, so there is nothing wrong with the API. |
Oh thx for nice explanation, now understand this trick with Dialog.js when we don't have builtin prompt command. Relative |
Hmm now see that still is something wrong. Steps to reproduce:
|
I can't reproduce it. From the message it looks like |
Problem is this 130 line: |
Hmm I test this on virtual machine (Win7 and IE8) and all works fine, so once again it's browser problem. You should test this minimum with IE11:) Edit: ok, find what is going on... you use not standard property for event ( |
I use IE11 with windows 7. Currently git hangs so I can't commit the edits 😟 Could you try replacing this line https://github.com/eight04/jn-npp-emmet/blob/master/src/emmet.js#L113 with:
|
But |
On Win7 64bit, IE11, NPP 6.9 + last jN and your Emment I see that when run "Wrap with Abbreviation" I get error... I try figured out what is going on and catch this line in
Dialog.js
:20 styles.styleSheet.cssText = this.cfg.css || '\nbody {overflow: auto;}\n';
so change them to:
20 styles.textContent = this.cfg.css || '\nbody {overflow: auto;}\n';
and works.
Btw., is there any solution to remember last position and sizes of this window? Every time when I run this command I get default window (somewhere in the middle in my screen)?
The text was updated successfully, but these errors were encountered: