Merge pull request #7252 from patrick-mackay/master

New definition for ngWYSIWYG
This commit is contained in:
Masahiro Wakame
2015-12-23 15:55:14 +09:00
2 changed files with 36 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
/// <reference path="ngwysiwyg.d.ts" />
//import ngWYSIWYG = require("ngWYSIWYG");
var complete: ngWYSIWYG.Config = {
sanitize: false,
toolbar: [
{ name: "basicStyling", items: ["bold", "italic", "underline", "strikethrough", "subscript", "superscript", "-", "leftAlign", "centerAlign", "rightAlign", "blockJustify", "-"] },
{ name: "paragraph", items: ["orderedList", "unorderedList", "outdent", "indent", "-"] },
{ name: "doers", items: ["removeFormatting", "undo", "redo", "-"] },
{ name: "colors", items: ["fontColor", "backgroundColor", "-"] },
{ name: "links", items: ["image", "hr", "symbols", "link", "unlink", "-"] },
{ name: "tools", items: ["print", "-"] },
{ name: "styling", items: ["font", "size", "format"] },
]
};
var partial: ngWYSIWYG.Config = {
sanitize: false
};
+16
View File
@@ -0,0 +1,16 @@
// Type definitions for Marked
// Project: https://github.com/psergus/ngWYSIWYG
// Definitions by: Patrick Mac Kay <https://github.com/patrick-mackay>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module ngWYSIWYG {
export interface Toolbar {
name: string;
items: string[];
}
export interface Config {
sanitize: boolean;
toolbar?: Toolbar[];
}
}