templates/wysiwyag/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Hello WysiwyagController!{% endblock %}
  3. {% block body %}
  4.                             <!-- PAGE-HEADER -->
  5.                             <div class="page-header">
  6.                                 <div>
  7.                                     <h1 class="page-title">Form Editors</h1>
  8.                                 </div>
  9.                                 <div class="ms-auto pageheader-btn">
  10.                                     <ol class="breadcrumb">
  11.                                         <li class="breadcrumb-item"><a href="javascript:void(0);">Forms</a></li>
  12.                                         <li class="breadcrumb-item active" aria-current="page">Form Editors</li>
  13.                                     </ol>
  14.                                 </div>
  15.                             </div>
  16.                             <!-- PAGE-HEADER END -->
  17.                             <!-- ROW -->
  18.                             <div class="row">
  19.                                 <div class="col-md-12">
  20.                                     <div class="card">
  21.                                         <div class="card-header border-bottom">
  22.                                             <h3 class="card-title">Summernote Editor</h3>
  23.                                         </div>
  24.                                         <div class="card-body">
  25.                                             <div id="summernote"><p>Hello Summernote</p></div>
  26.                                         </div>
  27.                                     </div>
  28.                                 </div>
  29.                             </div>
  30.                             <!-- /ROW -->
  31.                             <!-- Row -->
  32.                             <div class="row">
  33.                                 <div class="col-md-12">
  34.                                     <div class="card">
  35.                                         <div class="card-header border-bottom">
  36.                                             <h3 class="card-title">Form Editor style1</h3>
  37.                                         </div>
  38.                                         <div class="card-body">
  39.                                             <textarea class="content" name="editor-style01"></textarea>
  40.                                         </div>
  41.                                     </div>
  42.                                 </div>
  43.                             </div>
  44.                             <!-- /ROW -->
  45.                             <!-- ROW -->
  46.                             <div class="row">
  47.                                 <div class="col-md-12">
  48.                                     <div class="card">
  49.                                         <div class="card-header border-bottom">
  50.                                             <div class="card-title">
  51.                                                 Form Editor
  52.                                             </div>
  53.                                         </div>
  54.                                         <div class="card-body">
  55.                                             <div class="ql-wrapper ql-wrapper-demo">
  56.                                                 <div id="quillEditor">
  57.                                                     <p><strong>Quill</strong> is a free, open source <a href="https://github.com/quilljs/quill/">WYSIWYG editor</a> built for the modern web. With its <a href="https://quilljs.com/docs/modules/">modular architecture</a> and expressive API, it is completely customizable to fit any need.</p><br>
  58.                                                     <p>The icons use here as a replacement to default svg icons are from <a href="https://icons8.com/line-awesome">Line Awesome Icons</a>.</p>
  59.                                                 </div>
  60.                                             </div>
  61.                                         </div>
  62.                                     </div>
  63.                                 </div>
  64.                             </div>
  65.                             <!-- /ROW -->
  66.                             <!-- ROW -->
  67.                             <div class="row ">
  68.                                 <div class="col-md-12">
  69.                                     <div class="card">
  70.                                         <div class="card-header border-bottom">
  71.                                             <div class="card-title">
  72.                                                 Form Editor in Modal
  73.                                             </div>
  74.                                         </div>
  75.                                         <div class="card-body">
  76.                                             <div class="example text-center">
  77.                                                 <a class="btn btn-primary" data-bs-target="#modalQuill" data-bs-toggle="modal" href="javascript:void(0)">View Live Demo</a>
  78.                                             </div><!-- pd-y-30 -->
  79.                                             <div class="modal">
  80.                                                 <div class="modal-dialog modal-lg" role="document">
  81.                                                     <div class="modal-content">
  82.                                                         <div class="modal-header pd-20">
  83.                                                             <h6 class="modal-title">Create New Document</h6><button aria-label="Close" class="btn-close" data-bs-dismiss="modal" ><span aria-hidden="true">&times;</span></button>
  84.                                                         </div>
  85.                                                         <div class="modal-body pd-0">
  86.                                                             <div class="ql-wrapper ql-wrapper-modal ht-250">
  87.                                                                 <div class="flex-1" id="quillEditorModal">
  88.                                                                     <p><strong>Quill</strong> is a free, open source <a href="https://github.com/quilljs/quill/">WYSIWYG editor</a> built for the modern web. With its <a href="https://quilljs.com/docs/modules/">modular architecture</a> and expressive API, it is completely customizable to fit any need.</p><br>
  89.                                                                     <p>The icons use here as a replacement to default svg icons are from <a href="https://icons8.com/line-awesome">Line Awesome Icons</a>.</p>
  90.                                                                 </div>
  91.                                                             </div>
  92.                                                         </div>
  93.                                                         <div class="modal-footer pd-20">
  94.                                                             <button class="btn btn-primary" >Save changes</button> <button class="btn btn-light" data-bs-dismiss="modal" aria-label="Close">Cancel</button>
  95.                                                         </div>
  96.                                                     </div>
  97.                                                 </div>
  98.                                             </div>
  99.                                         </div>
  100.                                     </div>
  101.                                 </div>
  102.                             </div>
  103.                             <!-- /ROW -->
  104.                             <!-- ROW -->
  105.                             <div class="row ">
  106.                                 <div class="col-md-12">
  107.                                     <div class="card ">
  108.                                         <div class="card-header border-bottom">
  109.                                             <div class="card-title">
  110.                                                 From Inline-Edit Editor
  111.                                             </div>
  112.                                         </div>
  113.                                         <div class="card-body">
  114.                                             <div class="example" id="scrolling-container">
  115.                                                 <div id="quillInline">
  116.                                                     <h2>Try to select me and edit</h2>
  117.                                                     <p><br></p>
  118.                                                     <p>A unseen word door then at if, stood thy seat nothing saintly, stock god deep the not i before, my nothing and chamber and sad one let whether lattice. Entreating you in sure enchanted before bust raven. That swung agreeing door bird hear one out chamber sure. You felt is doubting pondered chamber within. Is is plainly that lent quoth.</p>
  119.                                                     <p>Hath still ah you upon i word tossed scarcely then. Tempest thy floating ashore prophet other divining he as. Never take with my i said, raven the what answer word on myself more sure, gloated entrance was stepped terrors, clasp lenore floating when flitting the fancy stood you all. Bird stillness whether i the. Cushions hesitating the only of within flown rare. This angels whose long head of, late lies so vainly whom explore still is. Little more heart plutonian.</p>
  120.                                                 </div>
  121.                                             </div>
  122.                                         </div>
  123.                                     </div>
  124.                                 </div>
  125.                             </div>
  126.                             <!-- /ROW -->
  127.                             <!--MODAL-->
  128.                             <div class="modal fade"  id="modalQuill">
  129.                                 <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  130.                                     <div class="modal-content">
  131.                                         <div class="modal-header">
  132.                                             <h6 class="modal-title">Create New Document</h6><button aria-label="Close" class="btn-close" data-bs-dismiss="modal" ><span aria-hidden="true">&times;</span></button>
  133.                                         </div>
  134.                                         <div class="modal-body pd-0">
  135.                                             <div class="ql-wrapper ql-wrapper-modal">
  136.                                                 <div class="flex-1" id="quillEditorModal2">
  137.                                                     <p><strong>Quill</strong> is a free, open source <a href="https://github.com/quilljs/quill/">WYSIWYG editor</a> built for the modern web. With its <a href="https://quilljs.com/docs/modules/">modular architecture</a> and expressive API, it is completely customizable to fit any need.</p><br>
  138.                                                     <p>The icons use here as a replacement to default svg icons are from <a href="https://icons8.com/line-awesome">Line Awesome Icons</a>.</p>
  139.                                                 </div>
  140.                                             </div>
  141.                                         </div>
  142.                                         <div class="modal-footer">
  143.                                             <button class="btn btn-primary" >Save changes</button>
  144.                                             <button class="btn btn-light" data-bs-dismiss="modal" aria-label="Close" >Cancel</button>
  145.                                         </div>
  146.                                     </div>
  147.                                 </div>
  148.                             </div>
  149.                             <!-- END MODAL -->
  150. {% endblock %}
  151. {% block javascripts %}
  152.    {{parent()}} 
  153.         <!-- INTERNAL SUMMERNOTE EDITORS JS -->
  154.         <script src="{{absolute_url(asset('build/plugins/summernote-editor/summernote1.js'))}}"></script>
  155.         {{ encore_entry_script_tags('js/summernote') }}
  156.         <!-- WYSIWYG EDITOR JS -->
  157.         <script src="{{absolute_url(asset('build/plugins/wysiwyag/jquery.richtext.js'))}}"></script>
  158.         <script src="{{asset('build/plugins/wysiwyag/wysiwyag.js')}}"></script>
  159.         <!-- FORMEDITOR JS -->
  160.         <script src="{{absolute_url(asset('build/plugins/quill/quill.min.js'))}}"></script>
  161.         {{ encore_entry_script_tags('js/form-editor2') }}
  162. {% endblock %}