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:
Related
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.
How can I autocomplete closing tags while coding in react development in Visual Studio Code?
Are there any packages to be installed?
Its time consuming to write HTML elements each time.
In vs code auto closing is available as a plugin, "Auto Close Tag". Simply installing the plugin is enough. See this gif
To enable autocomplete, you can add this code to your setting config file.
"javascript": "javascriptreact"
},
Running $cordovaDialogs.confirm('Coming soon...', 'Upcomming feature', 'Ok'); I get an alert with title Index.html in iOS, but with the right message.
Any ideas on how to fix this ?
My dependencies are:
"dependencies": {
"cordova": "^6.2.0",
"ionic": "^1.7.16",
},
"cordovaPlugins": [
"cordova-plugin-dialogs"
],
The $cordovaDialogs is an Angular wrapper for the Cordova plugin for Native Dialogs and falls back onto the regular alert() function if it cannot find or access the Cordova plugin.
I think that your problem may be related to the plugin not being installed plugin. Could you try navigator.notification.confirm instead of $cordovaDialogs.confirm? And make sure that the plugin is installed by checking cordova plugins and using cordova plugin add cordova-plugin-dialogs or ionic plugin add cordova-plugin-dialogs if it is not (do not use both, only use ionic plugin add or cordova plugin add).
I recently downloaded the VS code editor which is really nice.
but the only problem I find in it is the color theme, I am use to
monokai color theme like in sublime text and I can't find a way to edit
the color theme or download a color theme there are only 2 options:
Dark Theme
Light Theme
How can I add my own theme or duplicate existing one so I will be able to
edit the color scheme as I want to?
I manage to change some of the colors in the following file but still
I don`t know how to add completely new theme:
resources/app/client/vs/monaco/ui/workbench/native/native.main.css
Looks like color themes will be available soon and it will be a part of a plugin system
visual-studio-code/suggestions/7756227-theme
Visual Studio Code 0.9.0 and later
There's an official documentation on how to add a custom theme.
You need a .tmtheme file for the theme you want to add. You can find existing files e.g. on GitHub, ColorSublime or you can define your own theme file (for example with tmTheme-Editor).
After finding a .tmtheme file you have two ways to create an extension based on it.
Using a Yeoman generator:
Install node.js (if you haven't already done)
Install yo (if you haven't already done) by executing npm install -g yo
Install the Yo generator for code: npm install -g generator-code
Run yo code and select New Color Theme
Follow the instructions (define the .tmTheme file, theme name, ui theme etc.)
The generator creates a directory for your extension with the name of the theme in your current working directory.
Create the directory on your own:
Create a directory with the name of your plugin (only lowercase letters). Let's say we call it mytheme.
Add a subfolder themes and place the .tmTheme file inside of it
Create a file package.json inside the root of the extension folder with content like this
{
"name": "theme-mytheme",
"version": "0.0.1",
"engines": {
"vscode": ">=0.9.0-pre.1"
},
"publisher": "me",
"contributes": {
"themes": [
{
"label": "My Theme",
"uiTheme": "vs-dark", // use "vs" to select the light UI theme
"path": "./themes/mytheme.tmTheme"
}
]
}
}
Finally add your extension to Visual Studio Code
Copy the extension folder to the extension directory. This is:
on Windows %USERPROFILE%\.vscode\extensions
on Mac/Linux $HOME/.vscode/extensions
Restart VSCode and select the new theme in File -> Preferences -> Color Theme
Visual Studio Code 0.8.0
It's possible to add new themes in Visual Studio Code 0.8.0 (released for insiders on 2015-08-31 become an insider).
After installing VSCode 0.8.0 or higher do this to apply your own theme:
Download a .tmTheme file or create your own (for example with tmTheme-Editor)
Copy the .tmTheme file to %CODEFOLDER%/resources/app/plugins/vs.theme.starterkit/themes
Register the .tmTheme file in %CODEFOLDER%/resources/app/plugins/vs.theme.starterkit/ticino.plugin.json by adding an entry for it like this:
{
"id": "vs-theme-mynewtheme", // internal ID
"label": "MyNewTheme", // displayed name for the theme
"uiTheme": "vs-dark", // general UI appeareance (
// "vs" for light themes,
// "vs-dark" for dark themes)
"path": "./themes/myNewTheme.tmTheme" // file path
},
Restart VSCode and select the new theme in File -> Preferences -> Color Theme
Adding a completely new theme is not currently supported.
You can submit your feature requests here, I already heard people asking for this https://visualstudio.uservoice.com/forums/293070-visual-studio-code
I found that the file - resources/app/client/vs/monaco/ui/workbench/native/native.main.css - is also the right place for changing how fonts are renderer. I was trying to figure out how to disable font smoothing on OS X and found that you can do it here by adding this CSS rule in the file -
.monaco-editor {
-webkit-font-smoothing: none;
}
When developing I want to use a a minified .js file of Ext JS 5.1 like they do on Sencha Fiddle. It looks like you can use the cdn link from Sencha but when I use this in the index file it fails.
Is there something I need to be doing in the bootstrap.js file to make it use just a link instead of the Ext Js 5 root folder? I want to use the same link for multiple apps hosted on a server for an enterprise situation.
Also, the Chrome Dev Tools running super slow having to load each file. I want to use one minified file to make this useful again.
I'm not positive how you could use the cdn file referenced in the sencha fiddle website. Adding that link directly to the app while using the microloader would cause errors. The microloader in extjs5 automatically figures out which files to load in the framework.
However, you can achieve a similar goal of using a minified version of the extjs framework if you are using sencha cmd.
They detail how to setup your project to use the minified or developer copy of extjs5 instead of loading all the seperate files in this forum post
Here are the changes to make to your project documented to stack overflow in case that forum post is no longer available:
Step One
make sure you are using a version of sencha cmd greater than 5.0.2.
To determine your version of sencha cmd you can type the following in the command prompt:
sencha which
If you have an older version of sencha cmd you can download the latest copy here
Thanks to Niederee for this little advice, do a sencha app upgrade on your app to make sure it's tied to the latest sencha command build
sencha app upgrade
Step Two
Adjust your app.json manifest file to load the ext-all-rtl-debug.js . Add this file to the "js":[] array in the file:
"js": [
{
"path": "${ext.dir}/build/ext-all-rtl-debug.js" // new default for generated apps
},
{
"path": "app.js",
"bundle": true
}
],
You can also add sencha charts if they are required to get that minified build too:
{
"path": "${ext.dir}/packages/sencha-charts/build/sencha-charts-debug.js"
},
Optionally you can also adjust the cache preferences based on dev/production
Add this additionally to the app.json file:
"development": {
"loader": {
"cache": true
}
},
"production": {
"loader": {
"cache": "${build.timestamp}"
}
}
Step Three
In the command prompt run the following sencha command to refresh your application's bootstrap manifest.
sencha app refresh