Mercurial Hosting > sceditor
diff src/sceditor.js @ 7:df1e18048d97
add examples/min.html and better defaults
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 04 Aug 2022 23:46:09 -0600 |
parents | c26f7240e96b |
children | 9159df67520a |
line wrap: on
line diff
--- a/src/sceditor.js Thu Aug 04 20:05:05 2022 -0600 +++ b/src/sceditor.js Thu Aug 04 23:46:09 2022 -0600 @@ -1338,7 +1338,7 @@ * * @type {string} */ - style: 'jquery.sceditor.default.css', + style: baseUrl+'themes/content/default.css', /** * Comma separated list of fonts for the font selector @@ -1455,7 +1455,7 @@ * * @type {?number} */ - width: null, + width: 600, /** * Height of the editor including toolbar. Set to null for automatic @@ -1463,7 +1463,7 @@ * * @type {?number} */ - height: null, + height: 300, /** * If to allow the editor to be resized @@ -5976,10 +5976,9 @@ appendChild(editorContainer, wysiwygEditor); appendChild(editorContainer, sourceEditor); - // TODO: make this optional somehow base.dimensions( - options.width || width(original), - options.height || height(original) + options.width, + options.height ); // Add ios to HTML so can apply CSS fix to only it