CKEditor : wordcount - unable to find in CDN - ckeditor4.x

how to use wordcount or any other plugin when referrring to CDN script.
Question-1:
I'm referring to below CDN and I have added extraplugin in config.js. But it says unable to find "wordcount". it is full-all package not sure why it is unable to find.
src="https://cdn.ckeditor.com/4.8.0/full-all/ckeditor.js"
Question-2:
is there a way to download full-all(full package doesn't have all plugins enabled) from builder. instead have everything locally.
Question-3:
without CDN URL ng2-ckeditor doesn't display the content in editor. I wan it to work with local package.

I suppose you are using the ng2-ckeditor component for angular.
Answer 1: You can add extraplugins as follow.
Answer 2: Yes you can download the full package from here
Answer 3: Please look at the following description on ng2-ckeditor github page and here.

Related

dotcms osgi plugin from examples web interceptor

I'm evaluating dotcms through the docker demo, version 22.02
I'm trying the plugin samples provided by dotcms, example:
https://github.com/dotCMS/plugin-seeds/tree/master/OSGi/com.dotcms.webinterceptor
I can build the plugin and deploy it through the dotcms UI. But when I try to access the plugin (http://localhost:8080/app/helloworld?action=wrap) I got a 404 error.
I tried to replace /app by /application or remove /app in the url but same result: 404 error.
Where is the problem? The code is an example from dotcms and the demo docker is also provided by dotcms.
I'm evaluating the product and don't want to spend days to test plugin dev capabilities.
Thanks for your help
Regards,
Laurent
The example was expecting a service reference that no longer exists and so never properly inited. I've updated the example and removed the old reference. Please pull it down and try it again.
https://github.com/dotCMS/plugin-seeds/tree/master/OSGi/com.dotcms.webinterceptor

How to install/clone PHPExcel library in laravel?

I'm trying to use this library to create excel files but i can't. When i'm trying to install it then show this message... Reference link
Failed to clone https://github.com/ddeboer/phpexcel.git via https, ssh protocols, aborting.
Failed Message Image...
Kamruzzaman Khondakar
Looking at their website, the project has been migrated to this repo on github.
Also, looking at that repo, the docs say the project has been deprecated and users should use this new one.

Unable to use d3-legend plugin

I want to add d3-legend plugin in my code. I saved the code given on the website and added it in my html file as follows:
<script src="~/js/d3-legend.min.js"></script>
When I try to run the following line(which is part of my working code, btw)
var legendLinear = d3.legend.color()
.shapeWidth(30)
.orient('horizontal')
.scale(linear);
the app crashes. When I tried debugging, I notice it says undefined on the legend. So somehow d3.legend is not initialized.
I also tried adding it using CDN, without success.
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.19.0/d3-legend.js"></script>
The docs says I should be able to use it directly after adding it. Am I missing something here?
Note: When I do a file search in chrome devtools, I can see the added files(both the .js file and the cdn version, still I am not able to use d3.legend)
Edit: This issue is fixed. I was using wrong version. See the comment below.

Doctrine 2.2 Bisna CLI

I can't get the Bisna doctrine cli to work. It complains about not being able to find the Symfony Console application. Notice it's trying to look for it in a nested directory of Doctrine/Symfony/Console/Symfony/Component/Console. Anybody ever seen this?
PHP Warning: require(/Users/jhicks/workspace/production/application/../library/Doctrine/Symfony/Console/Symfony/Component/Console/Application.php): failed to open stream: No such file or directory in /Users/jhicks/workspace/production/library/Doctrine/Common/ClassLoader.php on line 163
PHP Fatal error: require(): Failed opening required '/Users/jhicks/workspace/production/application/../library/Doctrine/Symfony/Console/Symfony/Component/Console/Application.php' (include_path='/Users/jhicks/workspace/production/library:.:/opt/local/lib/php') in /Users/jhicks/workspace/production/library/Doctrine/Common/ClassLoader.php on line 163
Here's the Github page for the doctrine cli from Bisna: https://github.com/guilhermeblanco/ZendFramework1-Doctrine2/blob/master/bin/doctrine.php
There are many repositories that call themsemves Bisna in Github, it is difficult to find what of them you are using without further information.
The original one is the one created by Guilherme Blanco (Bisna used to be his nickname) called Zend Framework 1 + Doctrine 2 and works like a charm, but it does not bundle the Symfony components necessary to run the CLI tool.
What you have to do is download them from GitHub (search for "Symfony" and you will find the components inside the Organization repository) and put them inside your project's library folder paying attention to the PSR #0 naming conventions.
If you provide the piece of code that generates this error and the repository and version you are using, it will be easier to detect the error and give a better answer. It is naive to try and guess the type of error, but probably you have problems with namespaces and/or how you are calling Symfony's Console component.
If you need some guidance on how this integration can be achieved, you can look at doctrine.php inside Blanco's repository.
Looks like I needed to add these two lines to my existing autoloader bootstrap method:
$symfonyAutoloader = new \Doctrine\Common\ClassLoader('Symfony', 'Doctrine');
$autoloader->pushAutoloader(array($symfonyAutoloader, 'loadClass'), 'Symfony');
I didn't think this would be necessary since I included Symfony in the autoloaderNamespaces array in my application.ini file.
autoloaderNamespaces[] = "Symfony"

Ck editor file uploading - getting internal server error 500

We have a web site with domain http://209.59.154.150/~phnxaudi/,.
To develop this website we have used Joomla framework, and we have used Ckeditor in it, for uploading files(pdf, images etc ).
Also we have installed Ckeditor in the server.
But for some reason we are getting an internal 500 server error.
Could anyone please help us to solve this issue?
I have gotten 500 errors from ckFinder. It almost always is permissions. Ensure that the internet user has read/directory browse/write permissions to the configured "user files" folder.
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server.
if that's dont work, try to gave 0755 permission to the connector file in core....
when you put your files in the server automatically give 0777 permissions, and I can't execute php file, ...
try with a "hello world" en ckfinder folder and you can see the problem of permission.
sorry for my bad english.
enjoy!
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server. by Wim Van Loon < this solves the problem
Does the filename contain non-standard characters? Does it have no extension? I've found that if either of those are true, the image will not upload, the logs show nothing, and the CKEditor image upload interface shows a 500 error.
I faced the same issue with my ck_editor app, I was getting a similar type of error.
I tried copying demo application from django-ckeditor repository ck-editor demo application
with all the settings.
I faced two types of errors:-
Not mentioning upload path in the root urls
path('upload/', ImageUploadView.as_view(), name="upload")
import ImageUploadView from the ckeditor_uploader.views
I selected ckeditor_uploader's pillowbackend
This forum was quite useful to solve this problem.
which should have been something like
Hope it solves your problem.
i get this error
after install ckeditor and add the ckuploader '
Note: don't forget before you do the upload to run this commend:
python manage.py collectstatic
you need to get this folder in your project and on it you find this ckeditor folder:
enter image description here
I do this settings and it worked for me:
enter image description here
if you don't work with you just search on youtube
how to upload images in django - ckeditor

Resources