Laravel Checklister. Part 5: CKEditor for Task Form

Поделиться
HTML-код
  • Опубликовано: 29 апр 2021
  • In this video of the series, we implement a simple CKEditor 5 into our forms, for now without image uploading.
    Repository: github.com/LaravelDaily/Larav...
    Playlist with other Checklister videos: • Creating "Laravel Chec...
    - - - - -
    Support the channel by checking out our products:
    - Try our Laravel QuickAdminPanel: bit.ly/quickadminpanel
    - Enroll in my Laravel courses: laraveldaily.teachable.com
    - Purchase my Livewire Kit: livewirekit.com
    - Subscribe to my weekly newsletter: bit.ly/laravel-newsletter
  • ХоббиХобби

Комментарии • 73

  • @DavidRGarre
    @DavidRGarre 2 года назад

    Thank you very much. Is a perfect adaptador of CKEditor5 in Laravel. :-)

  • @FranChen1984
    @FranChen1984 3 года назад

    Wow, what you have done is as same as me completely !
    Even the blade style is so similar.
    I just did a backstage page with Laravel 8、Bootstrap 4 and CKEditor 5 , but I'm seeking CKFinder's solution right now.

  • @loicdemanou9
    @loicdemanou9 3 года назад +1

    thank you! i have been looking for how to do this for a long time :)

  • @AnillusionNL
    @AnillusionNL 3 года назад +16

    To prevent malicious code to be inserted, I usually sanitize the text before saving, by adding the strip_tags php function and explicitly state the tags allowed. That way you secure it on the server side, since client side can be manipulated.

    • @somebody5252
      @somebody5252 2 года назад

      Ok u will save secure data by strip_tags in database, BUT then how u show this data in client? Code executes in client side whatever

    • @adeodatusludan
      @adeodatusludan 2 года назад +1

      @@somebody5252 html special characters

  • @fdelval2
    @fdelval2 3 года назад +1

    Many thanks, you are my laravel reference

  • @hichamo-sfh177
    @hichamo-sfh177 3 года назад +1

    Great tutorial sir thanks a lot 🙏🏻

  • @NotBeHaris
    @NotBeHaris 3 года назад

    Awesome content sir.

  • @ward7576
    @ward7576 3 года назад +2

    This style of videos are really great for beginners. It's like Laracasts style series for step-by-step project development, but without a paywall.

  • @StrangledShadow
    @StrangledShadow Год назад

    Thank you! I struggled getting this to work with Livewire. In case there is anyone else struggling with this, here is what I did:
    On the text area parent div, I added wire:ignore. This makes it not re-render. But now the data is also not accessible by livewire, so I added:
    ClassicEditor
    .create(document.querySelector('#description'))
    .then(editor => {
    editor.model.document.on('change:data', () => {
    @this.set('description', editor.getData());
    })
    })
    .catch(error => {
    console.error(error);
    });

  • @christofferpawirodinomo7639
    @christofferpawirodinomo7639 2 года назад

    Thanks it helped me alot.

  • @JannatulSinthi-g3n
    @JannatulSinthi-g3n 5 дней назад

    thank you for making this video.

  • @turbokev3772
    @turbokev3772 3 года назад

    tinymce editor is a good one. It is more customizable but typically a little more time consuming to get set up properly.

  • @legenddon
    @legenddon 3 года назад

    Thank you for your time. WYSIWYG stands for What You See Is What You Get. I was wondering if its possibly to inject the script and style only where you need the editor? So a project wouldn't get bloated with unneccessary scripts and styles

  • @MSalehiPro
    @MSalehiPro 2 года назад +1

    Great tutorial !
    but how we can use CKEditor (Or other rich text editors) along with livewire?

  • @Shyloo
    @Shyloo Год назад

    Thans again man!

  • @asqltdnigeria5882
    @asqltdnigeria5882 2 года назад

    Thank you so much for the tutorial, it's been helpful. But I still find the HTML tags on my display page. please how do i fix it?

  • @tarekalhalabi8776
    @tarekalhalabi8776 3 года назад

    Thank you!

  • @sarlotakonvickova1394
    @sarlotakonvickova1394 3 года назад

    Installation with cdn does not work in my project. A preview was displayed, but I could not use any button for edit styling. I fixed it by installing via npm.

  • @abdulrehmandar8541
    @abdulrehmandar8541 3 года назад

    I used the CK editor in my project but its returning null when I check the request. do you have any solution. why this is happening and why its working for you.

  • @hemantbhardwaj17
    @hemantbhardwaj17 3 года назад +5

    Quill Editor is a good one :) free

  • @slametnugroho6535
    @slametnugroho6535 2 года назад

    very helpfull

  • @computer23able
    @computer23able 3 года назад

    Thank , useful

  • @CrystalVK
    @CrystalVK 11 месяцев назад

    What is the data type set in database for store richtext editor content.... Please help me

  • @aomo5293
    @aomo5293 Год назад

    Hello,
    I am looking how to upload audio and video files too?
    any suggestions
    Thank you

  • @L-A-O-S
    @L-A-O-S 3 года назад +2

    Just a little laravel tip. Instead of section(scripts) you can use @stack(scripts) @push(scriots) and @prepand, this make work with scripts more flexible.

    • @LaravelDaily
      @LaravelDaily  3 года назад

      In my experience, I haven't found the "flexible" part of @stack very beneficial. How exactly it would be flexible in this exact example, can you expand?

    • @rakeshthapa9541
      @rakeshthapa9541 3 года назад

      @@LaravelDaily using stack, you can inject from partials too.

    • @L-A-O-S
      @L-A-O-S 3 года назад

      @@LaravelDaily in this example maybe no benefits, but if we using this layout on some other pages, where we can put cdn link in prepand and the script just in push

    • @L-A-O-S
      @L-A-O-S 3 года назад

      @@LaravelDaily But h thought it could also be easily implemented through the section

  • @tanhipp1257
    @tanhipp1257 5 месяцев назад

    Thank you so much I from developer in Viet Nam

  • @10MinuteGuitarJams
    @10MinuteGuitarJams 3 года назад

    Trumbowyg is pretty good, open source with a lot of useful plugins included. It has its pain points like all wysiwyg editors but it's hackable and it beats paying monthly for one just so you can bold and underline a few things. Depends what you need of course..

  • @L-A-O-S
    @L-A-O-S 3 года назад

    Hello, should a junior be able to connect such plugins as CKEditor, and for example connect and configure the loading of images through this plugin?

    • @LaravelDaily
      @LaravelDaily  3 года назад

      It's not about junior or not junior, it's about the project you're working on. Does that project need a WYSIWYG editor?

  • @marceloespana7635
    @marceloespana7635 Год назад +1

    Hi there, thank you for this vídeo. i have a problem. when i put text in my textArea and press save button, it doesn't save the textArea text in my DB, why?

    • @marceloespana7635
      @marceloespana7635 Год назад

      i mean, i have it with validations, so, when i press save button it activate the validation error, like "empty textArea", like there is no text in my textArea

  • @GergelyCsermely
    @GergelyCsermely 3 года назад

    Thanks. If You copy-paste from Word doc a unordered list ul -li kind, is pasted into this correctly? I implemented Tiny editor, but that was a nigthmare with Livewire.

    • @LaravelDaily
      @LaravelDaily  3 года назад

      Pasting from Word doc into any kind of WYSIWYG editor is a curse, since the beginning of internet. You need to educate clients to NOT copy-paste from Word, that's the only solution I have found over the years.

    • @GergelyCsermely
      @GergelyCsermely 3 года назад

      @@LaravelDaily Thanks, But as I recognised the Tiny MCE can solve the cleaning the Word's classes issues. I will check theis too

  • @esra_a_shan2535
    @esra_a_shan2535 2 года назад

    I try to use editor it work fine but if I use required attribute in is not submit

  • @SudiptaKumar007
    @SudiptaKumar007 3 года назад

    How to implement this editor in livewire?

  • @intipontt7490
    @intipontt7490 3 года назад +4

    The only wysiwyg editor I've used is summernote, but I ran into problems with it because I was using a theme from creativetim that was poorly done.
    In my opinion, 'scripts' should be a @stack, not a @section. That way, you can push only the scripts needed for the view to work instead of loading ckeditor in every other view that does not need it. It also allows subviews to benefit from the @stack without having to worry about overriding the @section.

    • @LaravelDaily
      @LaravelDaily  3 года назад +1

      Good point, I will probably mention this in the next videos.

    • @Tux0xFF
      @Tux0xFF 3 года назад

      Summernote is the bees knees, i was able to solve an image upload issue i was having with livewire. All the others suffer from that issue or you only notice that when you upload an image using the wysiwyg editor

  • @scuraluis
    @scuraluis 3 месяца назад

    Why does everyone add it through CDN? Shouldn't we add it through NPM? I am trying to find tutorial on how to upload it via npm but can't find

  • @debarshidas8678
    @debarshidas8678 3 года назад +4

    I prefer editor js, Quill js & Trix.

  • @Somcoders
    @Somcoders 3 года назад

    I usually use summernote WSYWIG.

  • @MrError-ml3lz
    @MrError-ml3lz 3 года назад +1

    can you please add equations part in cke5 ?

    • @binodthakur6113
      @binodthakur6113 3 года назад

      Bro when u find please share - i want to implement in maths question editor

  • @erissulistina8828
    @erissulistina8828 3 месяца назад

    anjay, baru ngeh ternyata cara bacanya siki 😅karena saya orang sunda, aeng jadi ngakak 🤣

  • @aitsidisaidhamza4451
    @aitsidisaidhamza4451 3 года назад

    how we can use ckeditor with a livewire component ? im strugling with this !!

    • @LaravelDaily
      @LaravelDaily  3 года назад

      I have this component created: livewirekit.com/components/livewire-ckeditor-form

  • @habetech
    @habetech Год назад

    How implement CKEditor in quickadmin panel using livewire?

    • @LaravelDaily
      @LaravelDaily  Год назад +1

      Sorry, at the moment we don't have this feature in the Livewire version, or a readymade tutorial for it.

  • @hichamo-sfh177
    @hichamo-sfh177 3 года назад

    Is ckeditor 5 free ?

  • @tauseedzaman
    @tauseedzaman 3 года назад

    Should I use laravel for small projects. your opinion

    • @jijiwaiwai
      @jijiwaiwai 3 года назад

      Do it

    • @L-A-O-S
      @L-A-O-S 3 года назад

      Yes, you can

    • @L-A-O-S
      @L-A-O-S 3 года назад

      Even on the back of the job, refuses to stall big projects, as they need special optimization

  • @bimasatriayudhamohammad1584
    @bimasatriayudhamohammad1584 2 года назад

    thanks bro, already like and subscribe your channel

  • @fitter2boss72
    @fitter2boss72 3 года назад

    I see in DB "DDDD<script>alert();</script>" . It's mean if don't allow to edit source in editor, iCKeditor is secure.

  • @poplach
    @poplach 3 года назад

    html really may be a security issue, that's why most of the times it is better to use bb code or markdown

    • @Farishrf
      @Farishrf 3 года назад +4

      Purifier library fixes security issue with WYSIWYG.

  • @rajabhishek2936
    @rajabhishek2936 3 года назад

    Awosem

  • @kcseforecast7580
    @kcseforecast7580 3 года назад

    kindly i want to add popular posts in my show.blade.php how can i do this

  • @kcseforecast7580
    @kcseforecast7580 3 года назад

    show.blade.php is where i display a single post

  • @phanirajk9144
    @phanirajk9144 3 года назад

    I have used tinymce as WYSIWYG

    • @LaravelDaily
      @LaravelDaily  3 года назад

      In the past I also have used Tinymce, but it seems they became a paid platform now, no? www.tiny.cloud/

    • @dobosgy
      @dobosgy 3 года назад +2

      @@LaravelDaily You can download it here: www.tiny.cloud/get-tiny/self-hosted/