Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

[[1](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L37-L90)][[2](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L37-L79)][[3](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L37-L67)][[4](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L37-L55)][[5](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L37-L46)][[6](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L38-L44)][[7](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L46-L52)][[8](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L125-L138)][[9](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L127-L136)][[10](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L139-L152)][[11](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/modal.ts#L141-L150)][[12](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/settings.ts#L259)][[13](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/settings.ts#L261)][[14](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/settings.ts#L366-L380)][[15](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/settings.ts#L368-L378)]:You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.


[[1](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/settings.ts#L303)]:Obsidian's configuration directory isn't necessarily `.obsidian`, it can be configured by the user. You can access the configured value from `Vault#configDir`

[[1](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/pluginFix.ts#L23)][[2](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L24)][[3](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L64)][[4](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L65)][[5](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L70)][[6](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L78)][[7](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L79)][[8](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L82)][[9](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L118)][[10](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L119)][[11](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/NodesEdit.ts#L120)][[12](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/selection.ts#L32)][[13](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/selection.ts#L35)][[14](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/selection.ts#L38)][[15](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/utils/selection.ts#L39)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>



---

[[1](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/main.ts#L139)][[2](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/main.ts#L152)][[3](https://github.com/Lisandra-dev/obsidian-enhanced-copy/blob/f0e03ed08b3bbb61aa974258d96222c19109c162/src/main.ts#L173)]:We recommend against providing a default hotkey when possible. The reason being that it's easy to pick a hotkey that a user already has configured and they could get confused when that key doesn't do what they expect. Also, it's hard choosing a safe default hotkey that's available for all operating systems.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes, the bot will reevaluate your PR within 6 hours.
If you think some of these results are incorrect, please include `/skip` in your comment and the reason why you think the results are incorrect.
