GithubHelp home page GithubHelp logo

Comments (11)

boranbar avatar boranbar commented on May 17, 2024 2

It would be great if we had a component for a popular rich text editor like CKEditor, TinyMCE etc...

from laravel-splade.

pascalbaljet avatar pascalbaljet commented on May 17, 2024 2

Thanks to great work by @J87NL, Splade now supports the Jodit editor as of v1.4.10:

<x-splade-form>
    <x-splade-wysiwyg name="body" />
</x-splade-form>

Because Jodit's stylesheet is quite large, I decided not to include it in the default style.css, so you need to manually add it to the main app.js file:

import "@protonemedia/laravel-splade/dist/style.css";
+ import "@protonemedia/laravel-splade/dist/jodit.css";
import { renderSpladeApp, SpladePlugin } from "@protonemedia/laravel-splade";

I'll soon add this to the docs!

from laravel-splade.

pascalbaljet avatar pascalbaljet commented on May 17, 2024 1

Anyone familiar with Jodit? https://xdsoft.net/jodit/

from laravel-splade.

rodrigopedra avatar rodrigopedra commented on May 17, 2024

Tiptap maybe? https://tiptap.dev/

from laravel-splade.

thewebartisan7 avatar thewebartisan7 commented on May 17, 2024

from laravel-splade.

pascalbaljet avatar pascalbaljet commented on May 17, 2024

We're using Quill in one of our projects, and I like it. However, it has been over three years since there has been a new release which worries me. They're working hard on the next version, though! Native support for tables and uploads in the editor are very welcome.

from laravel-splade.

uqjohart avatar uqjohart commented on May 17, 2024

Vuequill could be added very quickly

npm install @vueup/vue-quill@latest --save

Then in app.js add Quill.

import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
createApp({
    render: renderSpladeApp({ el })
})
    .use(SpladePlugin, {
        "max_keep_alive": 10,
        "transform_anchors": false,
        "progress_bar": true,
        "components": {
            QuillEditor
        }
    })
    .mount(el);

How are you adding it to your blade? I've been wracking my brain and just cant get it to render on my splade form for the life of me. I looked at the doco and they just seems to use a

but this wont render in the component.
(apologies, I'm still learning so I'm pretty stupid)

My simple splade comp:

<x-layout>
  <x-panel>
    <x-splade-lazy>
       <x-splade-form :default="$experiment">
         <div id="editor"></div>
         // also tried <x-splade-textarea name="notes" label="Notes" id="editor" />
       </x-splade-form>
        </x-splade-lazy>
    </x-panel>
</x-layout>

It just refuses to render.

from laravel-splade.

MichInf avatar MichInf commented on May 17, 2024

following the response from @HUGE-D1CK-10-INCHES , it was important for me to use v-model:content instead of :value to make the data submission work properly in the form and avoid null request. I used a syntax similar to the example.

  <div class="rounded-md border border-gray-300 shadow-sm">
      <quill-editor name="description" v-model:component="form.description" componentType="html" toolbar="full" />
      <x-splade-input type="hidden" name="description" />
  </div>

from laravel-splade.

hipoagencia avatar hipoagencia commented on May 17, 2024

v-model:component="form.description"

Like this i get no errors:

<div class="rounded-md border border-gray-300 shadow-sm">
       <quill-editor name="descrip" v-model="form.descrip"  toolbar="full" />
</div>

But i cant get the value on $request.. Thanks for your time!

from laravel-splade.

hipoagencia avatar hipoagencia commented on May 17, 2024

:content

using v-model:content="form.description"

i could achive this:

image

The complete code:

<quill-editor name="descrip" v-model:content="form.description" componentType="html" toolbar="full" />
<x-splade-input type="hidden" name="description" />

from laravel-splade.

hipoagencia avatar hipoagencia commented on May 17, 2024

Anyone familiar with Jodit? https://xdsoft.net/jodit/

Do you pretend to make a tutorial with how we can implement this? It will be awesome.

from laravel-splade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.