- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Prevent canvas from removing empty div tags
If I am editing a page's body field (HTML editor) and I add an empty div. For example:
<div class="write-in-me-later"></div>
Upon save this div is excised from the page, reopening the editor will find it missing.
Is there any way to prevent this removal behavior. I would like to be able to set up the html structure of a page before all the content is ready.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@WillKP I don't believe there is a way to prevent Canvas from doing the "clean up" on the HTML. I have put in "XXX" or lorem ipsum as place holders to hold things in place and to see what it will look like with content.
Hope this helps!
-Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@WillKP I don't believe there is a way to prevent Canvas from doing the "clean up" on the HTML. I have put in "XXX" or lorem ipsum as place holders to hold things in place and to see what it will look like with content.
Hope this helps!
-Nick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply, though I don't consider this to be a solution. If possible I would like to escalate this to "feature request" if there is such a thing.
Possible solutions.
- Don't strip empty HTML tags
- Allow for any empty div that has a class or id attribute to be kept
- Provide affordance for special attribute that skips the empty div removal cleanup step. i.e. <div data-keep></div>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@WillKP Here are some links you may find helpful about creating a feature request. They are under the "roadmap" area of the community. I did not see any ideas yet for this in the quick search I did.
- How do idea conversations work in the Instructure Community?
- What is the feature development process for Instructure products?
- How do I create a new idea conversation in the Instructure Community?
-Nick
