]> _ Git - psq.git/commitdiff
ckeditor
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 18:24:47 +0000 (20:24 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 18:24:47 +0000 (20:24 +0200)
database/migrations/2020_08_11_092617_create_labo_articles_tables.php
resources/views/admin/humeurs/form.blade.php
resources/views/admin/laboArticles/form.blade.php
resources/views/en-plus/index.blade.php

index d0a03d654a7ec8cd20c9da129c3f3537c5c35db2..e222cf184df0870c0d72d2083086d0f9d841e77c 100644 (file)
@@ -14,7 +14,7 @@ class CreateLaboArticlesTables extends Migration
             // feel free to modify the name of this column, but title is supported by default (you would need to specify the name of the column Twill should consider as your "title" column in your module controller if you change it)
             $table->string('title', 200)->nullable();
 
-            $table->string('chapo')->nullable();
+            $table->text('chapo')->nullable();
             $table->text('preview')->nullable();
             $table->text('content')->nullable();
             $table->integer('position')->nullable();
index 6183ee6e6f69358ca421cd60a3cad46690ead6a5..01b0f734881a5d4663c16f95566c34a57f3baeef 100644 (file)
@@ -1,7 +1,7 @@
 @extends('twill::layouts.form')
 
 @section('contentFields')
-    @formField('wysiwyg', [
+    @formField('ckeditor', [
         'name' => 'extract',
         'label' => 'Extrait',
 ])
index fecb79a51065b2310788921ad82c607df430c336..4bb9979bda2a663cff2704399dc6191191d8de8b 100644 (file)
@@ -1,7 +1,7 @@
 @extends('twill::layouts.form')
 
 @section('contentFields')
-    @formField('input', [
+    @formField('wysiwyg', [
         'name' => 'chapo',
         'label' => 'ChapĂ´',
         'maxlength' => 250,
index 30887ec65dc1acfc3fa0582f1a28b28f9db4c3ab..bb3dd6b938a9d13ffa4a9a9b3850414384cb7492 100644 (file)
@@ -7,7 +7,7 @@
         <div class="row">
             <div class="col-sm-6">
                 <h1>Nos mauvaises humeurs</h1>
-                <article class="box p-3 mb-3">
+                <article class="box p-3 mb-3 ck-content">
                     <h2>{{$humeur->title}}</h2>
                     <p>{!! $humeur->extract !!}</p>
                     <a href="{{$humeur->url}}" class="click-here">Lire la suite</a>