Wagtail CMS: How to extend the Draftail RichText (WYSIWYG) Editor

  Рет қаралды 8,052

Coding For Everybody

Coding For Everybody

Күн бұрын

Пікірлер: 11
@redditcamp543
@redditcamp543 4 жыл бұрын
Hell yeah, I was waiting for this lesson the whole series. Thanks, really good content!
@johnnychia9796
@johnnychia9796 4 жыл бұрын
Thank you! wish you the best to your channel
@SaintTheDreamer
@SaintTheDreamer 5 жыл бұрын
Can we order the menu items in draftail editor bar ? How ?
@Shasras
@Shasras 3 жыл бұрын
21:47 This multiple nested dictionaries are so inelegant and confusing if you are not simply copy-pasting code, but writing line by line instead…
@Shasras
@Shasras 3 жыл бұрын
A simple, efficient and extremely helpful two lines of code to avoid switching the port every time the operating system (Mac OS, at least) claims it is used: kill -9 $(lsof -i:8000 -t) 2> /dev/null python3 manage.py runserver 8000
@XeUs87
@XeUs87 3 жыл бұрын
Hi, Kalob Thank you for amazing tutorials. I'm trying to use icon instead of label but text editor doesn't show the icon. I don't know what I'm doing wrong. I tried both fontawesome and svg icons but no result!
@XeUs87
@XeUs87 3 жыл бұрын
SVG was the problem. seems every time I tried to resize the icon i simply destroyed it;)
@ashishpitroda7468
@ashishpitroda7468 5 жыл бұрын
Is there ckeditor implement video by you? If not can you make video on it how to setup it? Because wagtail rich text does not provide source code view option like ckeditor.
@CodingForEverybody
@CodingForEverybody 5 жыл бұрын
I probably won't cover ckeditor to be honest. You can tell Wagtail which editor to use though and you could create your own wysiwyg preference pretty easily I think - just make sure you're cleaning the data from ckeditor - if you don't have Wagtail/python cleaning the raw HTML you could end up with an XSS attack. But also, Wagtails Draftail editor does some things that ckeditor simply won't do. Like when you link to another page and that page's URL changes - Draftail will pick up on that and change the URL in your RichText (in the template) so you never have broken links. It does the same with images and documents.
@ashishpitroda7468
@ashishpitroda7468 5 жыл бұрын
@@CodingForEverybody Actually i am trying with ckeditor because it provide option to "view source". It works fine as normal field but it does not work in Streamfield. While we select streamfield it shows nothing. And i don't find solution yet, if you can help to use it in streamfield. thanks
@AlekseyFilippovHuzzah
@AlekseyFilippovHuzzah Жыл бұрын
Regarding the text editor I consider this a heavy-lifting. After spending a year with wagtail I should say it was a trap. Since the tutorials mostly deal with "let's build a blog, guys!" you can't figure it out fast enough that everything is limited as hell. Yep, it's justified as "Let devs decide what they're after". But IMHO this is a huge time waster. Adding a color picker block, custom widgets - this stuff is poorly documented to start with. Who decided that StreamField is cool? For a pretty large project this quickly becomes a mess with 10 miles long block editing manuscript extravaganza. Oh, sure, you can extend this too, right? Through a form_template? Ugly solution. I wish your book could reflect these specific extension problems in depth. And I wish the platform could be really mature as it's being fanatically praised. I wish it could be a full-blown DX admin, targeting both devs and business, moderators, with more stuff outside of the box, with more robust block system, that would allow dynamic nesting without "it's not django way" justifications. With good docs, moreover explaining to users different scale startegies for modelling. It is funny, but if you visit stackshare.io's wagtail page you won't see any CONS section? Only the praise. Is it purposefully misleading? LOL, actually CONS I added were moderated as PROS 🤣
How to Use ListBlocks in Wagtail CMS to Create Repeating StreamField Content
19:52
Comparing Wagtail, Django CMS and Mezzanine
30:59
PyCon AU
Рет қаралды 29 М.
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 14 МЛН
Add A Rich Text Editor To A Django Blog - Django Blog #21
8:13
Codemy.com
Рет қаралды 67 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
How to Add Routable Pages to your Wagtail CMS Website
24:27
Coding For Everybody
Рет қаралды 12 М.
Headless Wagtail CMS: Serializing RichText Stream Blocks
10:57
Coding For Everybody
Рет қаралды 3,4 М.
Adding Global Site Settings to Your Wagtail CMS Website
16:43
Coding For Everybody
Рет қаралды 10 М.
Wagtail CMS: Adding an Email Contact Form and Landing Page
26:16
Coding For Everybody
Рет қаралды 14 М.
How to use Orderables in Wagtail CMS
22:42
Coding For Everybody
Рет қаралды 14 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 60 М.
How to Add a RichText StreamField to your Wagtail CMS Page
12:09
Coding For Everybody
Рет қаралды 13 М.