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

ul / ol support #36

Open
guyas opened this issue Feb 2, 2017 · 1 comment
Open

ul / ol support #36

guyas opened this issue Feb 2, 2017 · 1 comment

Comments

@guyas
Copy link

guyas commented Feb 2, 2017

I'm using the trix gem in my rails app, the text is being serialized/deserialized correctly and most of the html tags are working properly but ul/ol do not. for example, this text:
<div>ulist</div><ul><li>abc</li><li>def</li></ul><div>olist</div><ol><li>a</li><li>b</li><li>c</li></ol>
is saved correctly, deserializied correctly but then when repopulating the editor is simply ulistabcdefolistabc

Steps to Reproduce

<% @var = "<div>ulist</div><ul><li>abc</li><li>def</li></ul><div>olist</div><ol><li>a</li><li>b</li><li>c</li></ol>" %>
<input id='text_input' type="hidden" name="content" value="<%= @var %>">
<trix-editor input='text_input'></trix-editor>

Details
  • Trix gem version: 0.9.10
  • Browser name and version: firefox 51.0.1
  • rails: 4.2.5
  • ruby: 2.1.1p76

Thanks a lot!

@maclover7
Copy link
Owner

Hi @guyas! Are you able to reproduce this issue using solely the Trix JS/CSS assets? This gem is just a wrapper on those assets. If so, then this might be a bug in the basecamp/trix project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants