Forum Discussion

AustinTX98's avatar
AustinTX98
Copper Contributor
Nov 16, 2024

Copilot won't allow me to copy and paste HTML code into prompt

Yesterday I started observing an issue where I'm unable to copy and paste html into the prompt. I'm using Copilot for business. I've been able to replicate the issue across multiple browsers and restarted for good measure.

Originally posted this in the MS Office community and a moderator suggested I post here too: https://answers.microsoft.com/en-us/msoffice/forum/all/copilot-wont-allow-me-to-copy-and-paste-html-code/68336ee7-4bf8-47e5-848a-77d8cb22504f 

Anyone found a fix for this? How can we highlight this issue to Microsoft? 

  • phillip-caanz's avatar
    phillip-caanz
    Copper Contributor

    So I've found a work around involving the browser's inspector window.

    1. Write some dummy text into the prompt window.
    2. Right click on that text and select 'Inspect'
    3. Find the dummy text within the inspector window. It should be within a <span> tag.
    4. Double click the text so that you are editing only the text content and not the surrounding span or any other 'live' html.
    5. Make sure all your dummy text is highlighted and paste over it with your actual prompt including any html content.
    6. Click outside the window and you're done

    Copilot still consumes the html content correctly when sent to its server, its just copilots UI/front-end that is removing the html content as you paste it in.

  • phillip-caanz's avatar
    phillip-caanz
    Copper Contributor

    I had a wonderful workflow going at work that was easily saving me an hour every day with the ability to get copilot to generate html for me. But now its totally busted. 😠 What the heck?

  • WinterBeaver's avatar
    WinterBeaver
    Copper Contributor

    It doesn’t allow me to paste C++ code with templates either. 😥 Probably due to the < > symbols in the syntax.

Resources