Adding a CMS to Your Flask Web App Transcripts
Chapter: Course conclusion
Lecture: Review: The problem with HTML

Login or purchase this course to watch this video and the rest of the course contents.
0:00 we started out thinking, Well, we have a CMS for a website. So what we want to do is type HTML into it and then have it show
0:07 it back to the users and that was all well and good. But we saw each team. L is a little brittle and harden mostly annoying to
0:14 work with. So here's the page that we hope we're going to create in our CMS After we typed it in. This is the page. We actually great with our CMS.
0:22 What's the problem? Well, there's this subtle when you don't highlight it. Subtle unclos h to remember what we were typing into.
0:30 It's not like an editor that would find the problems with HTML. No, it's just a text area in a Web page.
0:36 This was hard to find, and that causes big problems that follow on for everything that comes after it in the site,
0:43 Not just what we right, but even the content that was part of the outer shell of our general look and feel.
0:48 So what we decided to do was go with mark down and we use the simple mde markdown editor and all you gotta do is take a text area include a little
0:57 CSS and JavaScript and point this thing at it. It becomes in awesome little editor. Remember, we're gonna go and add the CSS at the top.
1:07 We're going to add the JavaScript at the bottom in this additional Js thing. And we have a script section.
1:12 We just create this simple MD And we say the element element is document dog get element bidi. Our text area had the i d contents.
1:20 So we just say contents. That's it. One other thing I would do is I would say spellchecker false. Turn them off. The spell checker is not great.
1:29 Yeah, I just like to turn it off cause you already got a spellchecker in here. What browser, anyway?


Talk Python's Mastodon Michael Kennedy's Mastodon