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

Script works with Libre office and Word but not with Google docs #2278

Closed
bitdom8 opened this issue Feb 23, 2023 · 2 comments
Closed

Script works with Libre office and Word but not with Google docs #2278

bitdom8 opened this issue Feb 23, 2023 · 2 comments

Comments

@bitdom8
Copy link

bitdom8 commented Feb 23, 2023

Before creating a new issue, see list of known
issues
.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
`copyq:
var time = dateString('yyyy-MM-dd hh:mm:ss')
//var texthere = '###' + str(clipboard()).replace("SASA", "hehe") + '###'
var style = " "
var texthere = '<a href="###">###'
var href ='<style>span{'
+ style +
'}</style>'
+ texthere +
'';

copy(mimeText, href, 'text/html', href)
paste()`

Expected behavior
HTML output should be enabled.

Screenshots
Easily obtainable.

Script should work with google docs but not works

@bitdom8 bitdom8 added the bug label Feb 23, 2023
@bitdom8
Copy link
Author

bitdom8 commented Feb 23, 2023

Ok needed to add https for Gdocs to recognize it as link

copyq:
var time = dateString('yyyy-MM-dd hh:mm:ss')
//var texthere = '<a href="###">###' + str(clipboard()).replace("SASA", "hehe") +  '###</a>'
var style = " "
var texthere = `<a href=\"https://bitfinicon.com/symbols/` + str(clipboard()) + `\">` + str(clipboard()) + `</a>`
var href ='<html><head><style>span{'
            + style +
            '}</style></head>'
            + texthere +
            '</html>';


copy(mimeText, href, 'text/html', href)
paste()

@hluk
Copy link
Owner

hluk commented Feb 26, 2023

I assume this was resolved. Closing.

@hluk hluk closed this as completed Feb 26, 2023
@hluk hluk removed the bug label Feb 26, 2023
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

No branches or pull requests

2 participants