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

Copy button in screen copies also callouts #634

Open
tomschr opened this issue Oct 2, 2024 · 0 comments
Open

Copy button in screen copies also callouts #634

tomschr opened this issue Oct 2, 2024 · 0 comments

Comments

@tomschr
Copy link
Collaborator

tomschr commented Oct 2, 2024

Problem Description

Reported by in openSUSE/obs-docu (see Reference below).

In a screen with callouts elements )<co/>), the callout numbers are copied too.

For example, this is how it looks like in HTML:

<pre class="screen">
<span class="callout" id="co-obsbg-uc-basicprj-description">3</span>
...
<button class="clip-button">Copy</button>
</pre>

Expected Behaviour

When hitting the "Copy" button, the JavaScript should essentially ignore all <span> elements with a class="callout" attribute within <pre>.

@GGayathri3: If you have time, could you have a look? I see the "clip-button" text in different JavaScript files:

$ ack clip-button suse2022-ns/
[...]
suse2022-ns/static/js/script-new.js
281:      class: "clip-button",

suse2022-ns/static/js/script-purejs.js
270:    clipButton.className = "clip-button";

suse2022-ns/static/js/script.js
271:          class: 'clip-button',

References

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

1 participant