CKEditor - WYSIWYG, Getting Started with the Ultimate HTML Editor
For these sections related to CKEditor, I'm going to use the Laravel project. It's the project I recommend using. If you want to create another one or use a different one, that's up to you, but for me this is the most suitable, especially for the form we're going to use.
The idea is to place a "rich content" field in the content section. And what do I mean by this? At this point, I'm going to introduce you to CKEditor.
What is CKEditor?
You can open your browser and type "CKEditor" and click the first link. At the same time, you can also search for "What You See Is What You Get." It's there, I didn't misspell it: what you see is what you get, and you'll see the results.
CKEditor: Word for the web
This may be the first time you've heard of this, or maybe not, I don't know. But basically, CKEditor is exactly what its name suggests: what you see is what you get. I call it "Word online" or "Word for the web," as it offers features similar to Microsoft Word or Google Docs.
I'm referring to an editor that allows you to apply formatting such as bold, italics, strikethrough, color changes, headings, tables, lists, etc. This is precisely what the term What You See Is What You Get (abbreviated as WYSIWYG) means: you can format your text and see how it will look in real time.
In other words, we're talking about a plugin that allows us to enrich the content, so that it doesn't look so flat or boring, but rather has a more visually appealing style. This is ideal, of course, when working with a blog.
Applying it to our blog
That's why I'm using this Laravel project again, since we're supposedly working on a blog and don't want our posts to look so simple.
When you go into the details of a post, it shouldn't look so "blank," but rather should display rich content. For example, you can insert YouTube videos, something more advanced than the basic settings these editors come with by default.
In these types of editors, like the one you see above, you don't have options to insert a YouTube video or anything similar. Only basic things like titles, bold, or underlined text.
Additionally, I also place code blocks in my posts. I define that format elsewhere, but when we use CKEditor, we can directly indicate that a block corresponds to code, among many other options.
Conclusion
So, in summary, that's what CKEditor is for, and the concept of "What You See Is What You Get," which you're seeing on the screen. Let's leave it at that, and in the next lesson, I'll talk about plugins for this type of editor and why we're going to use CKEditor in particular.