Morning,
I downloaded ckeditor with the cakecoded plugin as shown in the github page https://github.com/CakeCoded/CkEditor, but I don't know where to customize it since I don't see a folder named ckeditor inside my application.
From my mac terminal I did this: composer require cakecoded/cakephp. When I call the ckeditor in my view like this: <?= echo $this->Ck->input('Media_content'); ?>,the ckeditor does appear but the image and flash icons are not working properly. So I decided to customize the ckeditor in adding image plugin or ckfinder, but the problem is that I did not get a ckeditor folder after the download was completed, so I don't know where to customize the ckeditor from.
I've tried to manually download ckeditor, first in the webroot/js folder and then in the plugins folder, but none of these manually downloaded ckeditors are being used by my views, and so all the configurations I make are not changing the ckeditor's behavior.
I'm having this in my composer.json:
"autoload": {
"psr-4": {
"App\": "src/",
"CkEditor\": "./plugins/CkEditor/src/"
}
},
{
"name": "cakephp/app",
"description": "CakePHP skeleton app",
"homepage": "https://cakephp.org",
"type": "project",
"license": "MIT",
"require": {
"php": ">=5.6",
"cakecoded/ckeditor": "^1.0",
"cakephp/cakephp": "3.7.",
"cakephp/migrations": "^2.0.0",
"cakephp/plugin-installer": "^1.0",
"mobiledetect/mobiledetectlib": "2."
I'm racking my brain trying to figure out this puzzle for 2 days but without any success. Any help would be appreciated.
Related
I'm using ckeditor 5 in my react(next.js) project. default editor toolbar is not suitable for this case and many plugins that I need doesn't exist in default version of ckeditor. So I used online builder(https://ckeditor.com/ckeditor-5/online-builder/) and added my custom editor to the project using this approach: https://www.datainfinities.com/3/how-to-integrate-custom-build-ckeditor5-with-react .
But the problem is many plugins that I've added, doesn't exist in my ckeditor! for example I installed:
find and replace
auto format
code block
ckbox
and I can see them in package.json of custom ckeditor folder:
"devDependencies": {
"#ckeditor/ckeditor5-autoformat": "^36.0.0",
"#ckeditor/ckeditor5-autosave": "^36.0.0",
"#ckeditor/ckeditor5-basic-styles": "^36.0.0",
"#ckeditor/ckeditor5-block-quote": "^36.0.0",
"#ckeditor/ckeditor5-ckbox": "^36.0.0",
...}
but I can't see any of these plugins in my ckeditor and I only see this:
I have been trying to use Google API in my 2.X CakePHP project for a couple of days now, and I seem not to be able to use it. The method I used to load it into my test server was installing it in local with composer (I changed my composer.json to include the library which looks like this).
{
"name": "cakephp/cakephp",
"description": "The CakePHP framework",
"type": "library",
"keywords": ["framework"],
"homepage": "http://cakephp.org",
"license": "MIT",
"authors": [
{
"name": "CakePHP Community",
"homepage": "https://github.com/cakephp/cakephp/graphs /contributors"
}
],
"support": {
"issues": "https://github.com/cakephp/cakephp/issues",
"forum": "http://stackoverflow.com/tags/cakephp",
"irc": "irc://irc.freenode.org/cakephp",
"source": "https://github.com/cakephp/cakephp"
},
"require": {
"php": ">=5.2.8",
"ext-mcrypt": "*",
"google/apiclient": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"cakephp/debug_kit" : "2.2.*"
},
"bin": [
"lib/Cake/Console/cake"
]
}
After that I uploaded my whole project using SFTP to my server, and even though I am running a simple script it would show the error "Google_Client class not found". My attemp looks like this:
dd(new Google_Client());
exit();
My output is as follows:
'Class 'Google_Client' not found'
'/var/www/html/app/Controller/AgendaEventosController.php'
I have tried with composer dumpautoload and reuploading the composer autoload to my server via ftp and also tried to import the autoload like this:
App::import("Vendor/Google/apiclient/src/Google","autoload.php"
Can anyone point a better approach to my problem? (also, for what it may be worth, my server's php version is 5.5.9 and my local enviroment -which I used to install the dependency- is 7.2, but I don't think this may be an issue)
As an aditional note: the README file states:
Finally, be sure to include the autoloader:
```php
require_once '/path/to/your-project/vendor/autoload.php';
It may also be worth mentioning I ran the composer install command in the root folder (not in the app folder).
But I am confused on where I should add this line, or even if I should add it, since CakePHP autoloader fires automatically (as fas as I know).
I'm encountering the Manifest file is missing or unreadable error when trying to load my unpacked Chrome extension. I'm building the extension as a react app, so the file structure looks like this:
I understand that the manifest.json needs to be in the root folder, not in public the way react usually lays it out. When I move it to the root however, it breaks the connection to app.js and my popup only loads index.html with none of the javascript connected.
This is how my manifest is laid out:
{
"manifest_version": 2,
"name": "My Extension",
"description": "This extension is a starting point to create a real Chrome extension",
"version": "0.0.1",
"browser_action": {
"default_popup": "index.html",
"default_title": "Open the popup"
},
"icons": {
"16": "/public/images/get_started16.png",
"48": "/public/images/get_started48.png",
"128": "/public/images/get_started128.png"
},
"permissions": [
]
}
Not sure if you've figured this one out already since its been awhile since someone answered, but once you are done, do npm run build. This should create your "build" which will have your manifest file, after that, load unpackaged "build" folder.
Hope this helps.
In Order to solve this issue :- Click on
Pack extension give a complete path Extension root directory click on Pack extension
Now click on Load extension.
you can see in your current folder two extra file generated on is .pem and .ctx file.
its working now
I have added angular-chart.js to my ionic solution, everything works well on emulator as well as device as long as i run with the "-live reload" option enabled, ionic run ios -l -s -c, but as soon as I try to run with it ionic run ios, it just shows a white screen in device and doesn't load at all.
Any clues what could be causing this? I am thinking perhaps its path related? I just cant think of what to do about it.
thanks for the help
I was able to fix this problem by adding the "chartjs":"~1.0.1" line in the bower.json file located at the root of my app.
{
"name": "com.companyname.appname",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.0.0-beta.14",
"platform": "~1.3.0",
"chartjs": "~1.0.1"
},
"dependencies": {
"angular-chart.js": "~0.3.14"
}
}
In my app, I have support for multiple languages.
Each languages ownsa .js files which contains one single object with every 'displayable string'.
The system totally works on desktop (chrome or safari) but on mobile it does not at all.
With alerts I found that whenever i was reaching for fields inside my language objects, it was not working.
Form that I guess my .js files are not bundled in my build when I Simulate on IOS via Sencha Architect.
Would someone help me do the job correctly?
Hand edit your app.json file so it look like this, architect doesn't do it itself.
"js": [
{
"path": "touch/sencha-touch.js",
"x-bootstrap": true
},
{
"path": "app.js",
"bundle": true,
"update": "delta"
},
{
"path": "PATH/TO/FILE.JS"
}
],