Skip to content

Commit

Permalink
Happy 2018! Links to new sites updated, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaTomanek committed Jan 4, 2018
1 parent 61a0247 commit f55e7ae
Show file tree
Hide file tree
Showing 28 changed files with 74 additions and 74 deletions.
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software License Agreement
==========================

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

All sample plugins are licensed under the terms of the MIT License (see Appendix A):

Expand All @@ -21,7 +21,7 @@ Appendix A: The MIT License

The MIT License (MIT)

Copyright (c) 2014-2016, CKSource - Frederico Knabben
Copyright (c) 2014-2018, CKSource - Frederico Knabben

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Code samples for CKEditor documentation
=====================

This repository contains ready-to-use code samples created for the [CKEditor documentation](http://docs.ckeditor.com).
This repository contains ready-to-use code samples created for the [CKEditor 4 documentation](https://docs.ckeditor.com/ckeditor4/docs/) and [website](https://ckeditor.com/ckeditor-4/).

In order to see a sample in action, copy its source to the CKEditor `plugins` directory.

1. Download a CKEditor package. Note that for development purposes it is recommended to download the source version. You can do this by downloading [your own CKEditor build](http://ckeditor.com/builder) (note the sample's requirements) and checking the "Source (Big N’Slow)" option at the bottom. You can also clone the [CKEditor development repository](https://github.com/ckeditor/ckeditor-dev) and proceed from there.
1. Download a CKEditor package. Note that for development purposes it is recommended to download the source version. You can do this by downloading [your own CKEditor build](https://ckeditor.com/cke4/builder) (note the sample's requirements) and checking the "Source (Big N’Slow)" option at the bottom. You can also clone the [CKEditor development repository](https://github.com/ckeditor/ckeditor-dev) and proceed from there.

2. Copy the plugin directory which you can find in every sample to the `plugins` directory in the installed CKEditor package.

Expand All @@ -15,7 +15,7 @@ For example:
git clone https://github.com/ckeditor/ckeditor-dev.git
git clone https://github.com/ckeditor/ckeditor-docs-samples.git

# Checkout the latest stable branch (equals to latest release available on http://ckeditor.com/download).
# Checkout the latest stable branch (equals to latest release available on https://ckeditor.com/ckeditor-4/download/).
cd ckeditor-dev
git co stable
cd ..
Expand Down
12 changes: 6 additions & 6 deletions editors/article-editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdn.ckeditor.com/4.7.3/standard-all/ckeditor.js"></script>
<script src="https://cdn.ckeditor.com/4.8.0/standard-all/ckeditor.js"></script>
<title>Article Editor</title>
<style type="text/css">
/* Minimal styling to add some padding around the editor in this sample */
Expand Down Expand Up @@ -35,7 +35,7 @@ <h2><label for="editor1">Article Editor</label></h2>
</div>
<script>
CKEDITOR.replace( 'editor1', {
// Define the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
// Define the toolbar: http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_toolbar
// The standard preset from CDN which we used as a base provides more features than we need.
// Also by default it comes with a 2-line toolbar. Here we put all buttons in a single row.
toolbar: [
Expand All @@ -51,7 +51,7 @@ <h2><label for="editor1">Article Editor</label></h2>

// Since we define all configuration options here, let's instruct CKEditor to not load config.js which it does by default.
// One HTTP request less will result in a faster startup time.
// For more information check http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-customConfig
// For more information check http://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-customConfig
customConfig: '',

// Enabling extra plugins, available in the standard-all preset: http://ckeditor.com/presets-all
Expand All @@ -60,7 +60,7 @@ <h2><label for="editor1">Article Editor</label></h2>
/*********************** File management support ***********************/
// In order to turn on support for file uploads, CKEditor has to be configured to use some server side
// solution with file upload/management capabilities, like for example CKFinder.
// For more information see http://docs.ckeditor.com/#!/guide/dev_ckfinder_integration
// For more information see http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_ckfinder_integration

// Uncomment and correct these lines after you setup your local CKFinder instance.
// filebrowserBrowseUrl: 'http://example.com/ckfinder/ckfinder.html',
Expand All @@ -75,7 +75,7 @@ <h2><label for="editor1">Article Editor</label></h2>

// An array of stylesheets to style the WYSIWYG area.
// Note: it is recommended to keep your own styles in a separate file in order to make future updates painless.
contentsCss: [ 'https://cdn.ckeditor.com/4.7.3/standard-all/contents.css', 'mystyles.css' ],
contentsCss: [ 'https://cdn.ckeditor.com/4.8.0/standard-all/contents.css', 'mystyles.css' ],

// This is optional, but will let us define multiple different styles for multiple editors using the same CSS file.
bodyClass: 'article-editor',
Expand All @@ -91,7 +91,7 @@ <h2><label for="editor1">Article Editor</label></h2>
// (and on your website so that it rendered in the same way).
// Note: by default CKEditor looks for styles.js file. Defining stylesSet inline (as below) stops CKEditor from loading
// that file, which means one HTTP request less (and a faster startup).
// For more information see http://docs.ckeditor.com/#!/guide/dev_styles
// For more information see http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_styles
stylesSet: [
/* Inline Styles */
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
Expand Down
18 changes: 9 additions & 9 deletions editors/document-editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://cdn.ckeditor.com/4.7.3/full-all/ckeditor.js"></script>
<script src="https://cdn.ckeditor.com/4.8.0/full-all/ckeditor.js"></script>
<title>Document Editor</title>
<style type="text/css">
/* Minimal styling to center the editor in this sample */
Expand Down Expand Up @@ -62,7 +62,7 @@ <h2><label for="editor1">Document Editor</label></h2>
</div>
<script>
CKEDITOR.replace( 'editor1', {
// Define the toolbar: http://docs.ckeditor.com/#!/guide/dev_toolbar
// Define the toolbar: http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_toolbar
// The full preset from CDN which we used as a base provides more features than we need.
// Also by default it comes with a 3-line toolbar. Here we put all buttons in a single row.
toolbar: [
Expand All @@ -81,14 +81,14 @@ <h2><label for="editor1">Document Editor</label></h2>

// Since we define all configuration options here, let's instruct CKEditor to not load config.js which it does by default.
// One HTTP request less will result in a faster startup time.
// For more information check http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-customConfig
// For more information check http://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.config-cfg-customConfig
customConfig: '',

// Sometimes applications that convert HTML to PDF prefer setting image width through attributes instead of CSS styles.
// For more information check:
// - About Advanced Content Filter: http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
// - About Disallowed Content: http://docs.ckeditor.com/#!/guide/dev_disallowed_content
// - About Allowed Content: http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules
// - About Advanced Content Filter: http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_advanced_content_filter
// - About Disallowed Content: http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_disallowed_content
// - About Allowed Content: http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_allowed_content_rules
disallowedContent: 'img{width,height,float}',
extraAllowedContent: 'img[width,height,align]',

Expand All @@ -98,7 +98,7 @@ <h2><label for="editor1">Document Editor</label></h2>
/*********************** File management support ***********************/
// In order to turn on support for file uploads, CKEditor has to be configured to use some server side
// solution with file upload/management capabilities, like for example CKFinder.
// For more information see http://docs.ckeditor.com/#!/guide/dev_ckfinder_integration
// For more information see http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_ckfinder_integration

// Uncomment and correct these lines after you setup your local CKFinder instance.
// filebrowserBrowseUrl: 'http://example.com/ckfinder/ckfinder.html',
Expand All @@ -110,7 +110,7 @@ <h2><label for="editor1">Document Editor</label></h2>

// An array of stylesheets to style the WYSIWYG area.
// Note: it is recommended to keep your own styles in a separate file in order to make future updates painless.
contentsCss: [ 'https://cdn.ckeditor.com/4.7.3/full-all/contents.css', 'mystyles.css' ],
contentsCss: [ 'https://cdn.ckeditor.com/4.8.0/full-all/contents.css', 'mystyles.css' ],

// This is optional, but will let us define multiple different styles for multiple editors using the same CSS file.
bodyClass: 'document-editor',
Expand All @@ -126,7 +126,7 @@ <h2><label for="editor1">Document Editor</label></h2>
// (and on your website so that it rendered in the same way).
// Note: by default CKEditor looks for styles.js file. Defining stylesSet inline (as below) stops CKEditor from loading
// that file, which means one HTTP request less (and a faster startup).
// For more information see http://docs.ckeditor.com/#!/guide/dev_styles
// For more information see http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_styles
stylesSet: [
/* Inline Styles */
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-1/abbr/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software License Agreement
==========================

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

All sample plugins are licensed under the terms of the MIT License (see Appendix A):

Expand All @@ -21,7 +21,7 @@ Appendix A: The MIT License

The MIT License (MIT)

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions tutorial-abbr-1/abbr/dialogs/abbr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* The abbr plugin dialog window definition.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
* http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1
*/

// Our dialog definition.
Expand Down Expand Up @@ -64,7 +64,7 @@ CKEDITOR.dialog.add( 'abbrDialog', function( editor ) {
onOk: function() {

// The context of this function is the dialog object itself.
// http://docs.ckeditor.com/#!/api/CKEDITOR.dialog
// http://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dialog
var dialog = this;

// Create a new <abbr> element.
Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-1/abbr/plugin.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* Basic sample plugin inserting abbreviation elements into the CKEditor editing area.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
* http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1
*/

// Register the plugin within the editor.
Expand Down
6 changes: 3 additions & 3 deletions tutorial-abbr-1/abbr/samples/abbr.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
Licensed under the terms of the MIT License (see LICENSE.md).
-->
<html>
Expand All @@ -17,7 +17,7 @@ <h1 class="samples">

<p>
This sample demonstrates the <strong>Abbreviation</strong> plugin that was created in the
<a href="http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1">first installment</a> of
<a href="http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1">first installment</a> of
of the CKEditor plugin tutorial series.
</p>

Expand All @@ -30,7 +30,7 @@ <h1 class="samples">
<p>
<strong>Note:</strong> This version of the Abbreviation plugin is able to add a new <code>&lt;abbr&gt;</code> element to the document,
but it does not make it possible to edit an already existing element. For this feature along with the context menu support check
the <a href="http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_2">second part of the tutorial</a>.
the <a href="http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_2">second part of the tutorial</a>.
</p>

<textarea id="editor1" cols="10" rows="10">
Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-2/abbr/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software License Agreement
==========================

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

All sample plugins are licensed under the terms of the MIT License (see Appendix A):

Expand All @@ -21,7 +21,7 @@ Appendix A: The MIT License

The MIT License (MIT)

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-2/abbr/dialogs/abbr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* The abbr plugin dialog window definition.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
* http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1
*/

// Our dialog definition.
Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-2/abbr/plugin.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* Basic sample plugin inserting abbreviation elements into the CKEditor editing area.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
* http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1
*/

// Register the plugin within the editor.
Expand Down
6 changes: 3 additions & 3 deletions tutorial-abbr-2/abbr/samples/abbr.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
Licensed under the terms of the MIT License (see LICENSE.md).
-->
<html>
Expand All @@ -17,7 +17,7 @@ <h1 class="samples">

<p>
This sample demonstrates the <strong>Abbreviation</strong> plugin that was created in the
<a href="http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_2">second installment</a> of
<a href="http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_2">second installment</a> of
of the CKEditor plugin tutorial series.
</p>

Expand All @@ -30,7 +30,7 @@ <h1 class="samples">

<p>
<strong>Note:</strong> This version of the Abbreviation plugin was built upon the source code created in the
<a href="http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1">first part of the plugin tutorial</a> and was
<a href="http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1">first part of the plugin tutorial</a> and was
extended with context menu support as well as the possibility to edit a previously inserted element.
</p>

Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-acf/abbr/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Software License Agreement
==========================

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

All sample plugins are licensed under the terms of the MIT License (see Appendix A):

Expand All @@ -21,7 +21,7 @@ Appendix A: The MIT License

The MIT License (MIT)

Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions tutorial-abbr-acf/abbr/dialogs/abbr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* The abbr plugin dialog window definition.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
* http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1
*/

// Our dialog definition.
Expand Down Expand Up @@ -135,7 +135,7 @@ CKEDITOR.dialog.add( 'abbrDialog', function( editor ) {
onOk: function() {

// The context of this function is the dialog object itself.
// http://docs.ckeditor.com/#!/api/CKEDITOR.dialog
// http://docs.ckeditor.com/ckeditor4/docs/#!/api/CKEDITOR.dialog
var dialog = this;

// Create a new <abbr> element.
Expand Down
4 changes: 2 additions & 2 deletions tutorial-abbr-acf/abbr/plugin.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
* Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
* Licensed under the terms of the MIT License (see LICENSE.md).
*
* Basic sample plugin inserting abbreviation elements into the CKEditor editing area.
*
* Created out of the CKEditor Plugin SDK:
* http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1
* http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_sample_1
*/

// Register the plugin within the editor.
Expand Down
6 changes: 3 additions & 3 deletions tutorial-abbr-acf/abbr/samples/abbr.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!--
Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved.
Copyright (c) 2014-2018, CKSource - Frederico Knabben. All rights reserved.
Licensed under the terms of the MIT License (see LICENSE.md).
-->
<html>
Expand All @@ -16,9 +16,9 @@ <h1 class="samples">
</h1>

<p>
This sample demonstrates the integration of <a href="http://docs.ckeditor.com/#!/guide/dev_acf">Advanced Content Filter (ACF)</a>
This sample demonstrates the integration of <a href="http://docs.ckeditor.com/ckeditor4/docs/#!/guide/dev_acf">Advanced Content Filter (ACF)</a>
with a custom <strong>Abbreviation</strong> plugin, as explained in the
<a href="http://docs.ckeditor.com/#!/guide/plugin_sdk_integration_with_acf">Integrating Plugins with Advanced Content Filter</a>
<a href="http://docs.ckeditor.com/ckeditor4/docs/#!/guide/plugin_sdk_integration_with_acf">Integrating Plugins with Advanced Content Filter</a>
article.
</p>

Expand Down
Loading

0 comments on commit f55e7ae

Please sign in to comment.