We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Creating doit links in text can either be done by pressing Ctrl+O or programmatically by setting a TextEmphasis.
doit
TextEmphasis
var txt = new lively.morphic.Text(rect(0,0,99,99), "foo"); txt.emphasize({doit: 'alert(1)'}, 2, 3); txt.openInWorld();
The created link is green and underlined but, unfortunately, the alert code is not executed when clicking on the link.
The text was updated successfully, but these errors were encountered:
Alright, it seems to work if you use a JavaScript object with a code property inside the doit style.
txt.emphasize({doit: {code: "alert(1)"}}, 2, 3);
Sorry, something went wrong.
levjj
No branches or pull requests
Creating
doit
links in text can either be done by pressing Ctrl+O or programmatically by setting aTextEmphasis
.The created link is green and underlined but, unfortunately, the alert code is not executed when clicking on the link.
The text was updated successfully, but these errors were encountered: