bug w/ image drag-in

Welcome! Forums TypeMetal Support bug w/ image drag-in

This topic contains 21 replies, has 2 voices, and was last updated by  TravisAlIct 12 hours, 4 minutes ago.

Viewing 15 posts - 1 through 15 (of 22 total)

  • Author

    Posts

  • #522

    Reply


    Martin Doudoroff

    I hope this reproduces for you, because it’s currently repeatable for me.

    1. close all TypeMetal documents and quit TypeMetal
    2. launch TypeMetal
    3. in the blank default document enter type “para 1”, hit return, type “para 2”
    4. COMMAND+s and save to Desktop as “test.html”
    5. open a finder window and drag a jpg from the Desktop between “para1” and “para2” (if no jpg on your Desktop, copy one there first)

    You should find that the filename is represented correctly in the src attribute, but the image is broken otherwise.

    grab

    It appears to me that this is one of those permissions problems. When you save the file to the Desktop, the app doesn’t get permission to save the file there, and then when you drag an image in from there, stuff goes haywire.

    #523

    Reply


    Troy Stephens

    Keymaster

    Thanks, Martin! I had noticed this myself and was just debugging it moments ago!

    For some odd reason, the initial request to load the just-added image sometimes comes in from WebKit as an “applewebdata://” URL. Normally it’s a “file://” URL (annotated with Sandbox permission data), and in those cases TypeMetal successfully retains authorization for the duration the referencing HTML file is open. I need to figure out what I can do in the “applewebdata://” case.

    A quick workaround is to close the HTML file and reopen it. TypeMetal will prompt you to grant read permission for an enclosing directory (if you haven’t previously), and the image, and all subsequently added images from the same file tree, should then load fine.

    Fortunately this only seems to occur when you’re working in a new tree of the filesystem where you haven’t used TypeMetal to open and edit files before (and thus haven’t granted TypeMetal folder permissions). Once you’ve worked in a particular file system area, you shouldn’t have to do the close-and-reopen trick for files in that subtree again (especially if you granted permission for a suitable root folder that encompasses everything the project’s HTML files reference — e.g. “~/Projects/ClientSite” — as advised under “Answering, and Avoiding, Repeated Requests” here).

    Sorry for the inconvenience! I hope to have a fix for this soon.

    #524

    Reply


    Troy Stephens

    Keymaster

    Oh, and: The incorrect indication of “0x0 pixels” is a consequence of the image load failing. I’ll make sure it works correctly again once I’ve fixed that.

    Thanks for posting the helpful screen grabs, by the way! I’m sorry you have to host the images somewhere yourself! — I’m going to look into easy image attachment for forum posts.

    #630

    Reply


    Troy Stephens

    Keymaster

    Ah, fascinatingly squirrely bug due to a WebKit resource URL handling behavior I wasn’t aware of. Only happens in a new HTML file after you’ve Saved it in a permanent location, until you close and reopen it. If I tickle a reload from the new HTML file after saving to it, the dragged-in image successfully loads, because it clears the “baseURL==nil” state that got stuck in WebKit’s state when the new, empty document was created. I need to make sure the reload OK to do, and won’t cause unwanted side effects (such as bugging you to authorize access to an enclosing folder). But I think I’m close to having a handle on this.

    #697

    Reply


    Troy Stephens

    Keymaster

    Hi Martin,

    A fix for this is finally out, in TypeMetal 1.1.2!

    I hope you’re still enjoying using TypeMetal! Please let me know if I can be of help with any other issues!

    Thanks & Regards,
    Troy

    #2654

    Reply


    ileufk

    what is herbal viagra http://canadian-pharmacye.com

    #2661

    Reply


    qhqzol

    #2670

    Reply


    kpmkkz

    generic viagra
    viagra for sale in usa
    how to legally buy viagra online http://viagracy.com

    #2676

    Reply


    pjzacs

    viagra from canada
    prescription viagra online usa
    cheap viagra canada http://canadian-pharmacye.com

    #2682

    Reply


    HelenBlume

    Revolutional update of SEO/SMM package “XRumer 16.0 + XEvil 4.0”:
    captcha solution of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another categories of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM software: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    Good luck!

    #2692

    Reply


    HelenBlume

    Perfect update of captcha regignizing package “XRumer 16.0 + XEvil 4.0”:
    captcha breaking of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM programms: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    Good luck!

    http://XEvil.net/

    #2697

    Reply


    dyumgp

    buy viagra online uk
    viagra without presc usa
    buying cheap viagra online http://viagracy.com

    #2710

    Reply


    HelenBlume

    Incredible update of captchas solution software “XRumer 16.0 + XEvil 4.0”:
    captchas solution of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM software: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    See you later ;)

    http://XEvil.net/

    #2723

    Reply


    nrwwfo

    #2724

    Reply


    dfrigo

    cheap viagra usa
    viagra overnight delivery usa
    generic viagra prices http://canadian-pharman.com

Viewing 15 posts - 1 through 15 (of 22 total)

Reply To: bug w/ image drag-in
Your information: