Commit 94db3a151f7d3cd80bf1b215d44f351e683da138
1 parent
5ab6864e
add load_to_clipboard function to be able to copy html into the OS clipboard
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
web/load_content.anubis
| ... | ... | @@ -177,3 +177,13 @@ public define HTML_Partial_Content |
| 177 | 177 | )= |
| 178 | 178 | load_content_init(target, web_action, [], replace, true) |
| 179 | 179 | . |
| 180 | + | |
| 181 | +public define String | |
| 182 | + load_to_clipboard | |
| 183 | + ( | |
| 184 | + WEB_Action_Name web_action, | |
| 185 | + List((String,String)) extra_args | |
| 186 | + )= | |
| 187 | + | |
| 188 | + "Xlib.load_to_clipboard('"+format_web_action_name(web_action, extra_args)+"');" | |
| 189 | +. | ... | ... |