Custom CSS for CKEditor toolbar - ckeditor

How do I create a custom stylesheet for the CKEditor (toolbar, etc.) and load it through the config?
I tried this but this seems to only change the CSS for the content within the editor, but not the editor itself:
config.contentsCss = '/skins/custom/editor.css';

You don't have to use CKEditor's config to customise the toolbar, dialogs, etc. The UI of the editor resides at the same level in DOM as main ckeditor.js file. Basically put your stylesheet into <head> section of your webpage:
<head>
...
<script src="ckeditor.js"></script>
<link href="/skins/custom/editor.css" rel="stylesheet">
...
</head>
Be aware of the specificity of CSS selectors.

Related

TiddlyWiki5 and highlight.js - How to change style / theme of syntax highlighting?

I am using TiddlyWiki version 5.1.13. I have added the highlight plugin (version 5.1.13) which uses highlight.js (version 8.8.0).
In a tiddler I successfully highlight XML like this:
```xml
<html>
<body>
</body>
</html>
```
How can I change the highlight style / theme to one of highlight.js various styles? (Highlight.js styles)
When you add Highlight.js to your site's directory, it contains a directory called styles. Inside that directory you have styles for all the themes available with Highlight.js.
To switch to a different theme, simply switch this line
<link rel="stylesheet" href="/path/to/styles/default.css">
to something like this:
<link rel="stylesheet" href="/path/to/styles/pick-theme-name-here.css">
Here is the URL to the styles directory in the
highlight.js repo.
I found it useful to locate the name of the Vs 2015 theme which isn't vs-2015 but rather vs2015.
I'm importing the styles from a CDN:
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/styles/default.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.3/styles/vs2015.min.css">
Also, for the record, Vs 2015 is very similar to VS Code's Dark+ (default dark) theme. That's the default theme that ships with VS Code.
The MadPhysicist's answer below is not as right as it can be. I'm using the highlight.js 10.3.1 version and the style css is available only in .min on cdnjs. So you must put pick-theme-name-here.min.css and not pick-theme-name-here.js
Ex :
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.1/styles/solarized-light.css
=> 404
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.1/styles/solarized-light.min.css
=> available

Creating a WebSite from Visual Studios and utilizing bootstrap

I have a website i am trying to build more for experience and practice. but i cant seem to get the nav bar to promperly show i dont know if i am referencing it correctly in the html file and also i dont know if my file structure is what it should be. any insight and help would be awesome.
I have seen where the .navbar methods are and they seems to be in the bootstrap.min.css file and i have changed and tried everyone of them to see if the bootstrap navbar will show.
It's hard to get the context that I would need just from the image that you posted but I see 2 things. you didn't include bootstrap CSS but you did include the theme. Refer to this SO post for the difference: What is the difference between bootstrap.css and bootstrap-theme.css?
As shown on the getting started page of bootstrap, your index page should have the following entrie
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
I also noticed that you are missing the start to your body tag but you have the closing for it. The browser will try to help you on this one but you should fix it to rule it out.
Just by looking and your image I can see there is an HTML error.
Your nav must be in the body tag.
The head tag must only include scripts, style sheets, meta tags and anything that is not "visible" for the user. The body tag contains everything else. Good luck!

Kendo UI Core - Bootstrap Stylesheets

I downloaded Kendo UI Core from Telerik website, and I want to make use of the Boostrap theme for my widgets, but however theres three bootstrap stylesheets to choose from: kendo.bootstrap.min.css, kendo.common-bootstrap.core.min.css and kendo.common-bootstrap.min.css. I'll be using datepicker, input masks and dropdowns. Which one should I use? Thanks.
I'm pretty sure that kendo.common-bootstrap.core.min only includes styling for the free widgets (Kendo UI Core) and kendo.common-bootstrap.min includes styling for all the free widgets and the paid widgets (Kendo UI Pro).
If you aren't using any of the "Pro" widgets, then you could use the .core. file.
You also need to add the kendo bootstrap theme.
Overall, you should have something like:
<link href="bootstrap.min.css" rel="stylesheet" />
<link href="kendo.common-bootstrap.min.css" rel="stylesheet" />
<link href="kendo.bootstrap.min.css" rel="stylesheet" />
Those 3 files are:
Actual bootstrap styling.
Kendo Bootstrap sizing and layout
Kendo Bootstrap theme

Kendo DataViz Widgets and UI Widgets on the same page

Is it possible to have Kendo UI widgets + DataViz widgets on the same page?
I wanted to have Grid(Popup Editing, Inline Editing etc.), Slider, AutoComplete, Rich Text Field and a Scatter Chart on the same page.
I have downloaded the latest trial package - kendoui.trial.2012.3.1114
I have added the files as below..
<link href="../../content/shared/styles/examples-offline.css" rel="stylesheet">
<link href="../../../styles/kendo.common.min.css" rel="stylesheet">
<link href="../../../styles/kendo.default.min.css" rel="stylesheet">
<script src="../../../js/jquery.min.js"></script>
<script src="../../../js/kendo.web.min.js"></script>
<script src="../../content/shared/js/console.js"></script>
<script src="../../../js/kendo.dataviz.min.js"></script>
But on adding "kendo.dataviz.min.js", other widgets seems to misbehave.
How to overcome this and have both UI widgets and DataViz widgets on the same page..???
I have used both UI widgets and dataviz widgets on the same page and faced no issue.
On a side note,Instead of including "kendo.web.min.js" & "kendo.dataviz.min.js" files, you can include "kendo.all.min.js" file alone that includes code for both UI widgets and dataviz widgets.
You can use "jsfiddle.net" to show your example that will help others in suggesting the root cause.

Sencha Touch 2 Standard Themes?

I noticed that the theme code is missing from the KitchenSink in the final version of ST2. Are there any default themes that ship with the product? Also, are there any open source themes available? I'd like to have a few themes handy for demos so I can easily switch between them.
Yes there are, if you open up senchatouch2/resources/css you've got the default sencha-touch.css and then you have apple.css, android.css, bb6.css(blackberry).
<link rel="stylesheet" href="senchatouch2/resources/css/apple.css" type="text/css" />
I think following url will help someone
http://developerextensions.com/index.php/sencha-touch-2-themes-builder
---Add the following link to your sencha-touch-2 app's html file.
---DEShowThemeBuilder(true); //function to show the theme builder
---DEShowThemeBuilder(false); //function to hide the theme builder
<script type="text/javascript" src="http://developerextensions.com/components/com_extensiondemo/views/extensiondemo/tmpl/sencha2/ux/themeBuilder/themeBuilder.js"></script>

Resources