Skip to content

Commit

Permalink
2.27.0
Browse files Browse the repository at this point in the history
2.27.0
  • Loading branch information
JiHong88 authored Mar 19, 2020
2 parents ea0b44d + f992477 commit fbcfad6
Show file tree
Hide file tree
Showing 59 changed files with 3,954 additions and 1,750 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,11 @@ minHeight : The min-height size of the editor.
maxHeight : The max-height size of the editor.
Used when 'height' value is 'auto'. default: null {Number|String}

// Editing area default style------------------------------------------------------------------------------------
defaultStyle : You can define the style of the edit area. (className: 'sun-editor-editable')
It affects the entire editing area. default: '' {String}
ex) 'font-family: cursive; font-size: 10px;'

// Defining menu items-------------------------------------------------------------------------------------------
font : Change default font-family array. default: [...] {Array}
Default value: [
Expand Down Expand Up @@ -549,7 +554,7 @@ youtubeQuery : The query string of a YouTube embedded URL. default: ''

// Defining save button-------------------------------------------------------------------------------------------
callBackSave : Callback functions that is called when the Save button is clicked.
Arguments - (contents). default: userFunction.save {Function}
Arguments - (contents). default: functions.save {Function}

// Templates Array------------------------------------------------------------------------------------------------
templates : If you use a template plugin, add it.
Expand Down Expand Up @@ -604,6 +609,11 @@ editor.setOptions({
]
});

// Set "options.defaultStyle" style.
// Define the style of the edit area
// It can also be defined with the "setOptions" method, but the "setDefaultStyle" method does not render the editor again.
editor.setDefaultStyle('font-family: cursive; font-size: 10px;');

// Open a notice area
editor.noticeOpen('test notice');

Expand Down Expand Up @@ -813,14 +823,28 @@ editor.imageUploadHandler = function (response, info, core) {
}
}

// Called just before the inline toolbar is positioned and displayed on the screen.
/**
* toolbar: Toolbar Element
* context: The editor's context object (editor.getContext())
* context: The editor's context object (editor.getContext()|core.context)
* core Core object
*/
editor.showInline = function (toolbar, context, core) {
console.log('toolbar', toolbar);
console.log('context', context);
}

// Called just after the controller is positioned and displayed on the screen.
// controller - editing elements displayed on the screen [image resizing, table editor, link editor..]]
/**
* name: The name of the plugin that called the controller
* controllers: Array of Controller elements
* core: Core object
*/
editor.showController = function (name, controllers, core) {
console.log('plugin name', name);
console.log('controller elements', controllers);
}
```

## Plugins list
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.25.0",
"version": "2.27.0",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/suneditor.min.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/fonts/0b8f27509021ddc0f7d4ee103181bc05.svg

This file was deleted.

Binary file removed dist/fonts/1d63e86b832ddfc4008baf6e69e7c39b.woff
Binary file not shown.
Binary file removed dist/fonts/435801d088c67acdd4c667e00037f080.eot
Binary file not shown.
Binary file removed dist/fonts/54469d382ec66ca4460d57a5f4a49b05.woff2
Binary file not shown.
Binary file removed dist/fonts/773c0f21a6a926b07f111a3892134dec.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/suneditor.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit fbcfad6

Please sign in to comment.