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

Do not require a closing tag #49

Closed
denis-sokolov opened this issue Oct 20, 2015 · 1 comment
Closed

Do not require a closing tag #49

denis-sokolov opened this issue Oct 20, 2015 · 1 comment

Comments

@denis-sokolov
Copy link

The documentation states that Trix "won’t load any HTML content inside a <trix-editor>…</trix-editor> tag". Ideally, of course, this should, indeed, work, just like <textarea>. (In which case #48 can be improved)

If it's impossible, though, why is the closing tag required? Consider making it a singular tag, like <input>:

<form>
  <input name=username>
  <trix-editor class=comment>
</form>
@denis-sokolov
Copy link
Author

I've been informed that custom tags can't be self-closing.

For some reason I don't see the comment of the person who put it here, but it was very valuable information, thanks!

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