Just wondering if anyone knows of an easy, inbuilt 'Wappler way' to do this before I write something custom. Or even a good third party option.
I want to have terms and conditions displayed in a scrollable box and ideally implement a mandatory scroll before the terms can be accepted. The terms are in a Word doc (or pdf) and needs to have formatting preserved - nothing complicated but it can't be plain text.
Depending on what kind of formatting you require, personally, I would stay away from trying to do it with Word. You will end up with so much rouge code the more you edit it and getting it to display properly would be a nightmare. Word and the browser do not play nice together. Also, can't be done with Wappler alone.
If you are looking for just the basic text and headings, bold, italic , maybe some fonts and colours - I would definitely and easily do this by storing your content in a database and update it very easily with Summernote. Very easily done with Wappler alone.
Thanks Ben. Yes I did something very similar using an iframe to point at the doc (saved as html) in an S3 bucket so it's a bit easier to make updates in future.
I was just wondering if there was a better way within Wappler that I wasn't aware of.
Well, to be clear, I'm not suggesting that either way is particularly difficult, but in my case:
The starting point is that the document (including future updates) is in Word. There's no getting away from that as it comes from the legal team. Saving as an html and stripping the superfluous styles is far quicker than manually editing a previous version and less error prone
Uploading a new version then doesn't require any changes to the codebase at all
It's mostly just simple formatting but there are clause numbers/ lists, indents etc which I don't think Wappler's simple text editor will display properly
This one is my issue but the text editor doesn't work for me (or I don't know how to access it properly). For example, I have a simple page with just your example div from above. I can see '...content...' in the design view but I can't edit it in either Component edit mode or text edit mode