Skip to content
Permalink
Browse files

Merge pull request #338 from cksource/t/16958

T/16958 Change MathJax CDN to cdnjs.
  • Loading branch information
mlewand committed Apr 13, 2017
2 parents 85cfaee + 4f9d9d9 commit bae53ff0d38117c12ccde6297a5da24b12121b9b
Showing with 6 additions and 5 deletions.
  1. +1 −0 CHANGES.md
  2. +1 −1 bender.ci.js
  3. +3 −3 plugins/mathjax/dev/mathjax.html
  4. +1 −1 plugins/mathjax/plugin.js
@@ -41,6 +41,7 @@ Fixed Issues:

Other Changes:

* [#16958](http://dev.ckeditor.com/ticket/16958): Switched default MathJax CDN provider from `cdn.mathjax.org` to [cdnjs](https://cdnjs.com/), due to closing of `cdn.mathjax.org` scheduled on April 30, 2017.
* [#16954](http://dev.ckeditor.com/ticket/16954): Remove paste dialog.

## CKEditor 4.6.2
@@ -4,6 +4,6 @@
var config = require( './bender' );

config.startBrowser = process.env.BROWSER || 'Chrome';
config.mathJaxLibPath = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML';
config.mathJaxLibPath = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML';

module.exports = config;
@@ -78,23 +78,23 @@ <h1>Apollo 11</h1>
extraPlugins: 'mathjax',
height: 350,
allowedContent: true,
// mathJaxLib: 'http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML',
// mathJaxLib: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML',
mathJaxClass: 'mjx'
} );
CKEDITOR.inline( 'editor2', {
extraPlugins: 'mathjax',
height: 350,
allowedContent: true,
// mathJaxLib: 'http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML',
// mathJaxLib: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML',
mathJaxClass: 'mjx'
} );
CKEDITOR.replace( 'editor3', {
extraPlugins: 'mathjax,divarea',
height: 350,
allowedContent: true,
// mathJaxLib: 'http://cdn.mathjax.org/mathjax/2.2-latest/MathJax.js?config=TeX-AMS_HTML',
// mathJaxLib: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML',
mathJaxClass: 'mjx'
} );
@@ -441,7 +441,7 @@
* Read more in the [documentation](#!/guide/dev_mathjax)
* and see the [SDK sample](http://sdk.ckeditor.com/samples/mathjax.html).
*
* config.mathJaxLib = '//cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-AMS_HTML';
* config.mathJaxLib = '//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML';
*
* **Note:** Since CKEditor 4.5 this option does not have a default value, so it must
* be set in order to enable the MathJax plugin.

0 comments on commit bae53ff

Please sign in to comment.
You can’t perform that action at this time.