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

Text marking from DOM #35

Open
fomkin opened this issue Aug 28, 2021 · 0 comments
Open

Text marking from DOM #35

fomkin opened this issue Aug 28, 2021 · 0 comments

Comments

@fomkin
Copy link
Contributor

fomkin commented Aug 28, 2021

Currently there is no way to define text marks without JS code. Consider this API:

<wc-codemirror>
  <script type="wc-content">
    Hello world
  </script>
  <mark-text from-line="1" from-char="7" to-line="1" to-char="11" options="{ 'css': 'color: red', 'title': 'cow' }" />
</wc-codemirror> 
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