Releases: JiHong88/suneditor
Releases · JiHong88/suneditor
v2.31.0
Enhancement
- The
value
option has been added.
You can specify the initial value of the editor.
Bugfix
v2.30.7
Hotfix (v2.30.1)
- Fixed a bug in which the style of the all texts are changed when changing the style of the text. #422
Changed
- If you use a function such as "setContents" before calling the "onload" function, it will not work properly.
- If there is something you need to manipulate immediately after creating the editor, do it within the "onload" function.
Bugfix
- Fixed a bug where style values were not applied correctly when using the "setOptions" or "setDefaultStyle" functions.
- Fixed a bug where the line break button was created in the wrong location when using
iframe
. - Fixed a bug with some buttons when using the
responsive toolbar
.
Maintenance
- Line break button icon has been changed.
v2.30.6
Enhancement
- In the "on[Image,Video,Audio]uploadBefore" function, instead of executing the default "uploadHandler", the image can be registered by calling the "register" method that receives the "response" object as an argument value. #414 , @example
Bugfix
- Fixed a bug where the focus was on the image caption when selecting an image in Chrome.
v2.30.5
Enhancement
- closureRangeFormat format has been added. #412
Bugfix
- Fixed a bug that "__se__tag" Class Tag. #409
- Fixed a bug that caused input errors when inserting image files. #410
- Fixed a bug where Firefox could not delete non-editable tags. #408
- Fixed TypeScript error. #411
- Fixed a bug where table image disappeared when switching to code view. #415
- Fixed several bugs related to list editing.
- Fixed a bug that the "maxCharCount" option did not work properly when "charCountType" option was "byte-html".
v2.30.4
Hotfix (v2.30.1)
- Fixed a bug that image inserted was not worked when using
imageGallery
in the image modal.
Enhancement
- Modified the button's active class to disappear after the
blur event
.
Bugfix
- Fixed a bug in which the first letter was deleted or added when entering a composition string after changing nodes.
- Fixed a bug that the shortcut key did not work properly when there was no corresponding button.
- Fixed a bug where, when using responsive toolbars, the active status of command buttons was not added after rearranging the buttons on the toolbar.
- Fixed a bug where not reload selector position after updating image src to "base64".
v2.30.1
Translation
Hotfix (v2.30.0)
- Fixed a bug where images could not be modified.
- Fixed a bug that the
fullScreen
function did not work properly while usingtoolbarContainer
.
New feature
- The
linkProtocol
option was added. #398 (@trembacz) - The "uploadHandler" argument has been added to the
[image,video,audio]UploadBefore
event. #378- If it returns
undefined
, it waits until "uploadHandler" is executed. - Please check to the READMD.md file for details.
- If it returns
- The
[image,video,audio]UploadMultiple
option was added. - The "closureFreeFormat" format was added. #397
- Added related methods: isClosureFreeFormatElement, getClosureFreeFormatElement
Enhancement
- Fixed the style of
<span>
to be maintained when pasting. #400 - Updated to allow drag and drop in the editor (Not working in IE). #304
- Fix to add a new line when the "selection" object is in an uneditable area.
Bugfix
- Fixed a bug where the delete button of the file input did not work in the "audio" plugin.
- Fixed a bug where editor's focus was not maintained when the controller clicking.
- Fixed a bug where the event function was not properly called when pasting an image file. #384
- Fixed a bug where the shape was not retained when pasting "Katex". #395 #399
- Fixed a bug that was not deleted by selecting all when there were tables, images, etc. at the top or bottom of the editor.
- Fixed a bug where external CSS files were not applied when preview or printing.
- Fixed a bug where the layout of the image gallery was broken in IE and Safari browsers.
- Fixed a bug where an error was displayed when clicking an empty space in the image gallery was fixed.
Maintenance
- Speed up HTML consistency checking.
v2.30.0
Translation
- Romanian (ro) translation added. #379 (@andreyciocan)
New feature
- An image gallery has been added. #270
- An image gallery button has been added to the image modal.
imageGalleryUrl
option has been added.- ImageGallery has been added to the button list for use at toolbar.
- Updated
buttonList
feature.- Feature of responsive toolbar and more button. #368
- Feature of alignment of the button groups.
toolbarContainer
option has been added. #342shortcutsHint
andshortcutsDisable
options have been added. #387- toggleCodeView and toggleFullScreen events have been added. #386
Enhancement
- Fixed an issue when inserting a custom tag in the editor. #375 , description
- Modified to return the file list can be returned in the "uploadBefore" event . #378
- When the menu is activated, the direction and length of the menu change depending on the margin of the browser. #382
- The video tag has been modified to work properly even if a source tag is added. #381
- Deleted the behavior of adding a new row when inserting a component. #390
- Line break is visible even when selecting a component.
Bugfix
- Fixed a bug where ZeroWidthSpace is deleted from minified js file. #356
- Fixed a tabIndex of the toolbar buttons. #370 (@madarche)
- Fixed a bug where browser compatibility of minimized css files was broken. #300
- Fixed a bug when checking the wrong image structure. #374
- Fixed a bug where previously set options were initialized when using setOptions method. #342 #383
- Fixed a bug where the line break appeared even when the editor was disabled. #376
- Fixed a bug that occurred when re-creating after removing the editor. #368 (comment)
- Fixed a bug that space is delete when paste from MS word. #338
- Fixed a bug where format tags were not created in certain situations. #385, #388
- Fixed a bug where a table was deleted when delete text. #389 #393
- 테이블 셀에서 쌍자음 입력시 한글 문자가 깨지던 버그 수정.
Maintenance
- Updated *.d.ts files #371
- Added property: util.isOSX_IOS
v2.29.0
Translation
- Italian(it) translation added #323 (@regololab)
New feature
- Added tableCellControllerPosition option to define the position of the table cell controller. #355
- Added tabDisable option to disable default editor's tab action. #343
- Added getFilesInfo function to get file infomation list.
- Added file upload to video plugin.
- options:
videoFileInput
,videoUrlInput
,videoUploadHeader
,videoUploadUrl
,videoUploadSizeLimit
- events:
onVideoUploadBefore
,onVideoUpload
,onVideoUploadError
.
- options:
- Added audio plugin.
- options:
audioWidth
,audioHeight
,audioFileInput
,audioUrlInput
,audioUploadHeader
,audioUploadUrl
,audioUploadSizeLimit
- events:
onAudioUploadBefore
,onAudioUpload
,onAudioUploadError
.
- options:
Enhancement
- Added fileManager and component module.
- A iframeCSSFileName option have been modified to allow data url. #360 (@rwhite226)
- Fixed onDrop event to be called before data is applied. #349
- Updated to support shadow DOM. #365 (@rwhite226)
Bugfix
- Fix onBlur type definition of d.ts file. #351 (@wxjzeke)
- Fixed a bug that caused an error when the
imageFileInput
option was false. #347 #357 - Fixed a bug where file information such as images were not initialized after using the
setOptions
method. - Fixed a bug where single quotes became double quotes after viewing the source #335 #337 (@rwaldron)
- Fixed a bug when using
icons
option #339 - Fixed a bug where the tag disappeared after node modification in certain situations. #331 #327
- Fixed a bug where tables were not deleted due to selection and deletion when there were only tables in the editor. (in Firefox) #333
- Fixed a bug the size not applied of inserted image at
insertHTML
method. #353 - Fixed a bug where cleanHTML not working when paste in IE. #345
- Fixed error when component check action. #336
- Fixed a bug when node change where nested line.
- Fixed a bug where image caption is positioned incorrectly when rotating an image.
Maintenance
- Modified
word-break
style to nomal. #340 - Deleted a
core.componentInfoPlugins
variable. - Modified a
core.selectComponent
method.
v2.28.4
Enhancement
- A fixed column width button has been added to the table editing controller.
- A onVideoUpload event and getVideosInfo function has been added.
Bugfix
- Fixed A bug that caused a blur event when clicking lineBreaker #318
- Fixed a bug where data was not accurately counted according to the charCounterType option when pasting.
- Fixed a bug where other option values "height", "maxHeight" and "minHeight" were not applied when using defaultStyle.
- Fixed a bug when deleting and check components such as images and videos.
Maintenance
v2.28.3
Enhancement
- d.ts files have been added so that the editor can support TypeScript. #287 #293 #311 (@tswistak)
- Modified the z-index of the controller to be higher than the toolbar. #313
Bugfix
- Fixed a bug where the focus object was set outside the editor in certain situations. #312
- Fixed a bug that could not modify the image after calling redo or undo.
- Fixed a bug where the line breaker did not appear in the center of the on left or right aligned components.
- Fixed a bug where the vertical size did not change when specifying the percentage size in the resizing module.
Maintenance
- Changed name of util.changeIcon -> util.changeElement