Comments (11)
It would be great if we had a component for a popular rich text editor like CKEditor, TinyMCE etc...
from laravel-splade.
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.
Anyone familiar with Jodit? https://xdsoft.net/jodit/
from laravel-splade.
Tiptap maybe? https://tiptap.dev/
from laravel-splade.
from laravel-splade.
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.
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.
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.
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.
:content
using v-model:content="form.description"
i could achive this:
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.
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)
- Downloading files not working HOT 1
- x-splade-rehydrate doesn't reload content if SpladeForm submit HOT 1
- Unable to integrate Daisy UI into a new Laravel/Splade project - important HOT 3
- ProtoneMedia\Splade\Components\PersistentComponent::viewData(): Argument #2 ($slot) must be of type Illuminate\Support\HtmlString, Illuminate\View\ComponentSlot given HOT 6
- Error when input name starts with digit HOT 1
- How can I re-initialize vanilla js codes whenever the page load HOT 2
- x-splade-select in select filters in x-splade-table
- Defer component with infinite polling
- Missing og:description HOT 1
- Not Fetching default Select value from record on Edit HOT 1
- When will be laravel-Splade v2 released HOT 7
- Collapse sidebar function
- Date Range Filter Table Splade HOT 1
- Filepond multiple upload with Spatie media library keeps only the first file HOT 2
- Laravel Splade jquery code not work untill reload whole page HOT 4
- Dynamically added fields to a Splade form not being submitted
- Laravel support for presence channels
- PersistenLayout Not Working HOT 3
- Component Specific Javascript Dependencies HOT 3
- How to user ChartJS with Splade? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-splade.