Skip to content

Commit

Permalink
Merge pull request #338 from cksource/t/16958
Browse files Browse the repository at this point in the history
T/16958 Change MathJax CDN to cdnjs.
  • Loading branch information
mlewand committed Apr 13, 2017
2 parents 85cfaee + 4f9d9d9 commit bae53ff
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bender.ci.js
Expand Up @@ -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;
6 changes: 3 additions & 3 deletions plugins/mathjax/dev/mathjax.html
Expand Up @@ -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'
} );

Expand Down
2 changes: 1 addition & 1 deletion plugins/mathjax/plugin.js
Expand Up @@ -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.
Expand Down

0 comments on commit bae53ff

Please sign in to comment.