ckeditor5-vue | Official CKEditor 5 Vue.js component | Editor library
kandi X-RAY | ckeditor5-vue Summary
kandi X-RAY | ckeditor5-vue Summary
️ This repository contains the CKEditor 5 component for Vue.js 3+. The component for lower Vue.js versions is located in another repository - @ckeditor/ckeditor5-vue2. Official CKEditor 5 rich text editor component for Vue.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ckeditor5-vue
ckeditor5-vue Key Features
ckeditor5-vue Examples and Code Snippets
Community Discussions
Trending Discussions on ckeditor5-vue
QUESTION
ANSWER
Answered 2022-Feb-21 at 11:32try vue@3.2.30 if you using Vue 3
QUESTION
I use vuejs and ckeditor.
I get an error when I go to the page with ckeditor. The editor does not display on the page at all.
Can you help me please?
TypeError: Cannot read properties of null (reading 'getAttribute') at IconView._updateXMLContent (app.js:89727:24) at IconView.render (app.js:89703:8) at IconView. (app.js:107630:32) at IconView.fire (app.js:105106:30) at IconView. [as render] (app.js:107634:16) at ViewCollection._renderViewIntoCollectionParent (app.js:98321:9) at ViewCollection. (app.js:98182:9) at ViewCollection.fire (app.js:105106:30) at ViewCollection.addMany (app.js:101049:9) at ViewCollection.add (app.js:101014:15)
here is my dependencies
...ANSWER
Answered 2022-Jan-23 at 22:47I came across the same error and managed to find the solution. You may also solve the problem, so I'll share the way.
In your webpack file(I assume it's webpack.mix.js in your laravel project root), set targetSVG /(.(png|jpe?g|gif|webp|avif)$|^((?!font).).svg$)/ instead of /(.(png|jpe?g|gif|webp)$|^((?!font).).svg$)/.
QUESTION
The app has been running successfully in production for a year, and works perfectly on MacOS localhost. Recently needed to set up the app to run on Windows 10 localhost, and after resolving all the errors, now the app boots up, requests seem to get through, however, only the '/' page actually renders, all the other routes don't render and stay at a blank page.
What could be a reason?
During initial setup, I ran into an issue with windows-build-tools and a missing Python, which I ended up eventually resolving by installing everything through Chocolatey. Could this be related?
Node version on Windows is newer than one specified in project, could this cause this?
I'm happy to provide more details and perform any experiments any of you recommend or suggest. My own guess is that it is either something related to setup on Windows or some issue with the packages on Windows.
The app is booted up through a package.json
start script:
ANSWER
Answered 2021-Dec-14 at 19:01Node version could be a problem. That windows-build-tools is required for the installation indicates there's binary dependency that is potentially incompatible with current Node version. Binary NPM dependencies usually provide a subset of precompiled binaries for a specific package version, where a combination of platform and Node.js version that can be considered safe or supported. For any other combination, binary package needs to be compiled for current platform with build tools. This doesn't always mean that the package is incompatible but this is common.
For example, node-sass
(doesn't seem to be used here) has different versions that correspond to specific Node.js versions and provides precompiled binaries for a supported subset; for unsupported Node.js version it falls back to compilation during installation process and most likely fails.
It's unknown which dependency causes this problem in this case, this needs to be reviewed in npm/yarn logs.
In order to avoid this situation, Node version could be matched with old one. Project dependencies need to be freshly installed because node_modules in use has been already tied to currently used Node version.
QUESTION
I'm in the process of implementing a custom upload adapter for CKEditor 5 using VueJS3. Basing on the example provided in this StackOverflow question, I did the following:
- I created UploadAdapter.vue file (code attached below)
- I imported the file in my vue component
import UploadAdapter from '@/Shared/UploadAdapter';
- I then placed the
Uploader()
function in the component's methods and also included theextraPlugins: [this.uploader]
in ck's editorConfig. (find code of vue component below)
Now the problem is I'm getting this strange error that tells me ReferenceError: $ is not defined when I drag and drop an image into the editor.
All search results on google point to this error being caused by lack of jquery. This confuses me because I'm using vuejs 3 and not jquery. Nevertheless I installed jquery using npm -i jquery
and imported it into my vue component but still no luck.
I need help pointing out what triggers the ReferenceError: $ is not defined
.
Here is my UploadAdapter.vue file
...ANSWER
Answered 2021-Jun-25 at 08:02It looks like you are attempting to use jQuery in UpoadAdapter.vue
to select the content from the csrf-token meta tag.
QUESTION
I am trying to handle a Promise
in Javascript, and as a beginner I find the shorthand arrow functions
a bit hard to read. So for now I like to expand it to be function(){ }
rather than ()=>
.
When handling a Promise, the following does not work:
...ANSWER
Answered 2021-Mar-12 at 15:07I believe the reason it does not work is because you do not return anything from that promise.
Try the following:
QUESTION
I am trying to include CKEditor 5
in my Vue.js 3 app but am struggling with including it only on client-side. I am using server-side rendering which cannot handle window
that CKEditor uses, so it must only load only if the browser requests it, and not Node.js.
In the setup() method I can test for IsBrowser
like this:
ANSWER
Answered 2021-Mar-09 at 03:21Working solution (explanation is below):
QUESTION
I have been trying to implement an CkEditor, but i haven't made any success. I have created an online-builder from https://ckeditor.com/ckeditor-5/online-builder/.
-I have instaled: "@ckeditor/ckeditor5-build-classic": "^25.0.0", "@ckeditor/ckeditor5-vue2": "^1.0.5",
picture of files organization that i use i
And here is my component:
...ANSWER
Answered 2021-Feb-24 at 16:26I have solved the problem!!
If you are searching for an RichText editor for Nuxt version 2.14 to 2.15, use Quilljs!!
Its awsome, and there is this tutorial for it: https://www.programmersought.com/article/4960245701/,
and its own git that is super helpful!! https://github.com/quilljs/quill
you can face problems with the seting up, depending on your component, and the solution to the last part of the tutorial is an example of component.
dont use the
QUESTION
ANSWER
Answered 2021-Feb-01 at 09:15that's because you are using tailwindcss and it escapes H tags. You can add
QUESTION
How to add custom CSS class to element .ck-content
, by other words, to editable formatted text container in CKEditor5 and Vue2?
The ck-content
is the input field; we must differ it from the toolbar above, the other part of CKEditor. So if we want to apply some class affecting only to inputted content, it must not affect to toolbar.
Seems to be obvious solution:
...ANSWER
Answered 2021-Jan-12 at 12:16Vue CKeditor component emits ready
event when it's really mounted and rendered. So an easy solution: catch it and add the class to the wanted node, having in mind that this.$el
is the sibling of the real container of the editor.
QUESTION
Hi guys so currently im encountering a problem. Im trying customize a build, so everything works fine in the ckeditor ( which i cloned ) the sample.html works fine too. But when im trying to implement the customize build in Vue 2 i got the error like the title ( the original works okay btw, like the classic build ).
...ANSWER
Answered 2020-Dec-20 at 12:41So this popup becauseof the conflict version of ESLint in my package.json and in ckeditor5 ( which i forked ) is different.
Anyway, if you want to build a custom like me
- Fork all the repo.
- Create your custom build but dont push it into the repo which you forked.
- Instead create a new reposity, push your custom build into there.
- Install it via
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ckeditor5-vue
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page