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

Render html in checklists, instead of showing it as text #1168

Open
nickpapoutsis opened this issue Nov 22, 2020 · 0 comments
Open

Render html in checklists, instead of showing it as text #1168

nickpapoutsis opened this issue Nov 22, 2020 · 0 comments

Comments

@nickpapoutsis
Copy link

nickpapoutsis commented Nov 22, 2020

I have tried displaying images in a checklist (<img src="/image/hd.jpg">) but it was getting escaped and wouldn't load.

I used escape: false but it didn't make a difference. Maybe it's my weird mix of x-editable inside DataTables but nothing I did was working until I modified the x-editable source code.

Example using https://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.js

Find .append($('<span>').text(' '+this.sourceData[i].text)); on line 3267 and change it to .append($('<span>').html(' '+this.sourceData[i].text));.

Spent way too many hours before looking into the actual source code :(

Thanks to @HunterJoe for pointing me in the right direction (here: #594).

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