@shopify/tinymce
Advanced tools
Comparing version 4.5.5-shopify4 to 4.5.5-shopify5
import * as tinymce from 'tinymce'; | ||
export * from 'tinymce'; | ||
export interface Settings extends tinymce.Settings { | ||
[key: string]: any, | ||
declare module 'tinymce' { | ||
export interface Settings extends tinymce.Settings { | ||
[key: string]: any, | ||
} | ||
export function init(settings: Settings): Promise<tinymce.Editor[]>; | ||
export const shopifyConfig: Settings; | ||
} | ||
export function init(settings: Settings): Promise<tinymce.Editor[]>; | ||
export const shopifyConfig: Settings; | ||
export * from 'tinymce'; |
{ | ||
"name": "@shopify/tinymce", | ||
"version": "4.5.5-shopify4", | ||
"version": "4.5.5-shopify5", | ||
"description": "Shopify fork of TinyMCE", | ||
@@ -20,4 +20,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@types/tinymce": "^4.5.14" | ||
"@types/tinymce": "^4.5.15" | ||
} | ||
} |
33
web.js
@@ -7,2 +7,33 @@ var tinymce = require('./index.js'); | ||
require('./plugins/paste/plugin.js'); | ||
require('./plugins/noparsing/plugin.js'); | ||
require('./plugins/noparsing/plugin.js'); | ||
module.exports.shopifyConfig.content_style = ` | ||
/** | ||
* Rich Text Editor | ||
* Manages style within the editor iframe | ||
**/ | ||
html, body { | ||
cursor: text; | ||
} | ||
body { | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 15px; | ||
line-height: 1.5; | ||
margin: 0; | ||
} | ||
h1, h2, h3, h4, h5, h6, p { | ||
margin: 0 0 1em 0; | ||
line-height: 1.4; | ||
} | ||
table { | ||
width: 100%; | ||
} | ||
table, td, th { | ||
border: 1px dashed #CCC; | ||
} | ||
`; |
1565007
48437
Updated@types/tinymce@^4.5.15