Skip to content

Commit

Permalink
Docs refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Apr 9, 2019
1 parent d9ed9c0 commit d4d5e8d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/plugindefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
*/

/**
* A virtual function which should be implemented if a plugin is not supported on every
* A function which should be implemented if a plugin is not supported on every
* available environment according to
* [Browser Compatibility](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_browsers.html)
* or specific editor configuration.
Expand All @@ -189,14 +189,15 @@
*
* ```javascript
* CKEDITOR.plugins.add( 'sample', {
* isEnvironmentSupported: function() {
* isSupportedEnvironment: function( editor ) {
* // Plugin supported only on modern browsers.
* return !CKEDITOR.env.ie || CKEDITOR.env.edge;
* }
* } );
* ```
*
* @since 4.11.2
* @method isEnvironmentSupported
* @since 4.12.0
* @method isSupportedEnvironment
* @param {CKEDITOR.editor} editor
* @returns {Boolean} An information if the plugin is supported on the existing environment.
*/

0 comments on commit d4d5e8d

Please sign in to comment.