Commit Graph

31 Commits

Author SHA1 Message Date
Adrien Vergé
c4e76e648f CKEditor HTML parser typings (#11616)
* test(CKEditor): Add missing tests for htmlParser.basicWriter

* feat(CKEditor): Add typings for htmlWriter

See related documentation at:
http://docs.ckeditor.com/#!/api/CKEDITOR.htmlWriter

* feat(CKEditor): Add typings for htmlDataProcessor

See related documentation at:
http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor
2016-10-12 22:02:10 +09:00
Adrien Vergé
877a2af148 fix(CKEditor): Fix config.toolbar type (#11567)
The type for toolbar is currently defined as  `string | (string[])[]`,
but it should be `string | (string | string[])[]`.

The `toolbar` property is either:
* a toolbar name (`string`)
* or an array of elements, that can be `string`s (for instance a newline
  marker `'/'`) or `string[]`s (for instance a list of buttons).

For example, this is a valid configuration:

```js
CKEDITOR.config.toolbar = [
    [ 'mode', 'document', 'doctools' ],
    [ 'clipboard', 'undo' ],
    '/',
    [ 'find', 'selection', 'spellchecker' ],
    [ 'basicstyles', 'cleanup' ],
    '/',
    [ 'list', 'indent', 'blocks', 'align', 'bidi' ],
];
```
2016-10-06 23:26:24 +09:00
Adrien Vergé
50d20cf6e6 feat(CKEditor): Add missing typings for focusManager 2016-09-29 08:35:57 +02:00
Jonas Brekle
5a771fdfce extend ckeditor typings with: 'env' property, 'commands' property, tools.enableHtml5Elements function, fix buttonDefinition for addButton, addMenuItem(s) with typed definition argument 2016-08-04 13:46:03 +02:00
vatara
a8d678c006 Fixed name of CKEditor config option 'filebrowserUploadUrl' from 'filebrowserUploadUr' 2016-06-20 10:17:11 -04:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Aliaksei Kharchykau
912068a2f8 CKEDITOR.plugins.load second argument now is function and third is optional 2016-03-02 10:50:12 +03:00
Andrew Watson
ce46a8ebbc Fixing npm test errors 2016-02-08 13:58:45 +11:00
Andrew Watson
1c0d3d8148 Added some properties
NOTE: changed Object to any for objects we need to access random
properties from as any will allow it without complaint or casting.
2016-02-08 12:35:17 +11:00
Andrew Watson
2bd5cfdae6 Updating
While trying to create a custom widget/plugin with dialog, I found the
definitions to be a little lacking, so I added the bits I needed....
Used with CKEditor 4.5.6
2016-02-03 13:05:36 +11:00
RonanDrouglazet
2238bc2210 CKEDITOR.inline arguments
Take a string OR HTMLElement on first param 

here 
http://docs.ckeditor.com/source/inline.html#CKEDITOR-method-inline

then here 
http://docs.ckeditor.com/source/element.html#CKEDITOR-dom-element-static-method-get

tested on CKEDITOR 4.5.6
2016-01-28 17:48:43 +01:00
mirogrenda
f9cd3e383d ckeditor: added CKEDITOR.lang type definition
Added the missing CKEDITOR.lang type definition (stores language-related
functions - see
https://github.com/ckeditor/ckeditor-dev/blob/master/core/lang.js)
2015-11-24 15:40:54 +01:00
Andy Mehalick
1bd969555c ckeditor: added contentsLangDirection property
Updated the ckeditor.config interface to add the missing contentsLangDirection string property (http://docs.ckeditor.com/source/config.html#CKEDITOR-config-cfg-contentsLangDirection).
2015-11-19 19:17:39 -05:00
Vern Jensen
6361ebc586 Update ckeditor.d.ts
Changed tabs to spaces to fix indentation in my previous changes.
2015-11-18 13:01:57 -08:00
Vern Jensen
2265fd173f Added some missing definitions
Added some mkissing elements, such as CKEDITOR.config.allowedContent, .width, and more.
2015-11-16 16:33:40 -08:00
Abubaker Bashir
96d7162807 Added config singleton and missing properties
Added 

- CKEDITOR.config : singleton ([doc link](http://docs.ckeditor.com/#!/api/CKEDITOR.config))
- config.contentsCss - string or string array ([doc link](http://docs.ckeditor.com/#!/api/CKEDITOR.config))
- customConfig - string ([doc link](http://docs.ckeditor.com/#!/api/CKEDITOR.config))
2015-10-14 12:33:11 +01:00
rushi216
67e5a7613c added height, toolbarlocation, readonly properties in config object 2015-09-23 10:23:51 +05:30
rushi216
fe92aa252c added extraPlugins property on configuration object 2015-09-22 17:05:34 +05:30
Daniel Rosenwasser
8f8e362fc0 'icons' is not a documented member for plugin definition objects in 'ckeditor'. 2015-08-11 12:43:20 -07:00
Daniel Rosenwasser
d35c031331 Use union types where appropriately hinted in 'ckeditor'. 2015-08-11 12:40:48 -07:00
vvakame
ed7403b8b0 fix ckeditor/ckeditor-tests.ts 2015-07-19 17:01:21 +09:00
Damiano
e0d184fc83 Update ckeditor
Added toolbarGroups and removePlugins  on configuration object.

http://docs.ckeditor.com/#!/guide/dev_toolbar
2014-10-31 18:04:28 +01:00
Tim Dumol
e16d9f71f5 Add properties of CKEDITOR.widgets.repository. 2014-10-29 20:03:02 +08:00
Tim Dumol
39a4dda864 Add static methods of CKEDITOR.plugins and CKEDITOR.dialog. 2014-10-29 20:02:48 +08:00
Damiano
01439a37fc Update ckeditor.d.ts getData and setData
FIXED getData() to allow calling without parameter as in the example

http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-getData

FIXED setData(...) parametes 

http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-setData
2014-10-17 08:12:05 +02:00
mirogrenda
e58b8d6c23 Changes to config interface 2014-10-15 11:45:32 +02:00
mirogrenda
7db7d750e1 Added config option disableObjectResizing 2014-10-15 11:21:54 +02:00
ondrejsevcik
38fd3aa269 Fix Travis CI build (because of tsc --noImplicitAny option) 2014-03-17 10:38:19 +01:00
ondrejsevcik
099d4dc09f Added CKEditor definitions 2014-03-14 18:44:17 +01:00