Skip to content

Releases: JiHong88/suneditor

v2.29.0

08 May 15:18
d7d834c
Compare
Choose a tag to compare

Translation

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.
  • Added audio plugin.
    • options: audioWidth, audioHeight, audioFileInput, audioUrlInput, audioUploadHeader, audioUploadUrl, audioUploadSizeLimit
    • events: onAudioUploadBefore, onAudioUpload, onAudioUploadError.

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

07 Apr 22:21
b7b3a1b
Compare
Choose a tag to compare

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

  • core:
    componentInfoPlugins, resizingDisabledButtons, focuEdge, toggleDisabledButtons
  • util:
    toggleDisabledButtons

v2.28.3

05 Apr 12:24
916a35a
Compare
Choose a tag to compare

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

v2.28.2

03 Apr 23:14
8c3da7d
Compare
Choose a tag to compare

Hotfix (v2.28.1)

  • Fixed a bug with text nodes disappearing when changing text style in nested lists

Enhancement

  • Improved the display location of the balloon-toolbar and submenu when there is not enough space on the page. #294

Bugfix

  • Fixed a bug that sometimes the focus did not move to the end depending on the type of the inserted node in the functions.insertHTML method.

v2.28.1

02 Apr 10:12
21ad365
Compare
Choose a tag to compare

Hotfix (v2.28.0)

  • Fixed a bug where the editor did not work properly when using the iframe and fullPage options in FireFox.
  • Fixed a bug where the image and table were deleted when deleting a character after selecting a range from table or image.

Enhancement

  • Added line breaker to add lines when there are no lines above or below the component.

스크린샷 2020-04-01 오전 4 23 54

  • The underline has been replaced from <ins> to <u>. #285
  • Added options imageHeight and videoHeight. #305
  • Added type the "byte-html" to the charCounterType option. #281
  • Improve the consistency check before rendering the HTML in the editor. #292 #297 #299
  • The method of adding of the custom plugin has been improved. #custom_plugins

Bugfix

  • Fixed a bug where the text was erased when changing the text style in certain situations.
  • Fixed a bug where history stack was not added after pasting a text node #296
  • Fixed a bug in which text style changes of externally pasted tables did not work properly. #291 (#288 #289 #290)
  • Fixed a bug an HTML comments rendering #286
  • Fixed a bug where rows above a table cannot be deleted #284
  • Fixed a bug onChange event is not fired when removing styled text #301
  • Fixed a bug where select tags disabled in custom plugin #302
  • Fixed a bug where submenu would appear in the wrong location when the toolbar width is short than submenu width #294

Maintenance

  • Adjusted the call location of functions related to history more efficiently.
  • Properties added or modified to the functions:
    getCharCount, insertHTML
  • Properties added or modified to the core:
    nativeFocus, insertNode, removeNode, cleanHTML, convertContentsForEditor
  • Properties added or modified to the util:
    isTextStyleElement, splitElement

v2.28.0

22 Mar 11:22
1633c2f
Compare
Choose a tag to compare

Enhancement

  • The following options has been added.
    • icons #272, charCounterType, charCounterLabel #271
  • The onInput event have been added.

Bugfix

  • Fixed a bug where HTML comments were added as text to the body. #277 #278
  • 범위 선택없이 텍스트 노드에 스타일을 줄때, 해당 노드에서 처음 한글입력시 한글 조합이 깨지던 버그 수정 #268

Maintenance

  • Properties added or modified to the util:
    isIE, isIE_Edge, getByteLength, getPageStyle

v2.27.1

20 Mar 19:49
Compare
Choose a tag to compare

Hotfix (v2.27.0)

  • Fixed a bug where content was not added when using the "setContents" method immediately after editor creation. #267 #273
  • The abnormal behavior that occurred after pasting the table was fixed. #274

v2.27.0

19 Mar 17:07
fbcfad6
Compare
Choose a tag to compare

Hotfix

  • Fixed a bug that caused an infinite loop in certain situations when the LI tag containing a nested list was deleted.

Enhancement

  • Removed the web font and replaced it with Inline svg. (The "fonts" folder has been deleted) #215
  • Added a index.d.ts TypeScript file. #197 #243 @serialine
  • Added a showController event. #231
  • Added a defaultStyle option and setDefaultStyle function. #25
  • Added a functions object to "core".

Bugfix

  • Fixed a bug that caused the editor to focus after setContents. #246
  • Fixed a bug that wrong text node change. #249
  • Fixed a bug where the last cell was not selected when selecting multiple cells in a table. #261
  • Fixed a bug that wrong range selected after list indent.
  • Fixed a bug that cannot delete selected content when the first element is "contenteditable=false" #237 #254
  • Fixed a bug where some styles were missing when pasting in Chrome. #248
  • Fixed a bug that sometimes generated font tags when deleting span tags. #259
  • Fixed a bug that key event in table and editor. #250 #251 #252 #253 #256 #258
  • Fixed a bug where onChange was not called when charCount was max. #255
  • Fixed a bug where the function of the plugin could not be used when only the plugin was added. #263
  • Fixed a bug where onBlur event was called when selecting a submenu. #257 #261
  • Fixed a bug selected align option icon does not change. #262

Maintained

  • Added events:
    showController
  • Properties added to the core:
    icons, effectNode, currentControllerTarget, initMenuTarget, toggleDisabledButtons
  • Properties added to the util:
    isMedia, htmlRemoveWhiteSpace, changeIcon

v2.26.0

11 Mar 17:52
ea0b44d
Compare
Choose a tag to compare

Translation

Enhancement

  • Added balloon-always mode. #208 #241
  • Added a math plugin that uses the "KaTeX" library. #219 @himalay
    • The katex option added.
  • Added nested lists feature. #217 #233
  • Added a blockquote command plugin.
  • The method of adding a custom formatBlock and the class name have been modified. ("freeFormat" added)
  • The pre(code) tag format has been modified to match that of other editor. (Like Froala editor)
  • The formatBlock has been modified so that the name of the format menu is displayed instead of the tag. #190
  • The toolbar no longer appears when the focus is on a table when in balloon mode. #209 #213
  • Added onBlur and onFocus events. #198 #238
  • Added addTagsWhitelist, pasteTagsWhitelist and attributesWhitelist options to possible edit the whitelist in the editor. #200 #203 #239
  • Added onImageUploadBefore and imageUploadHandler functions. #220 #205
  • The "core" object has been added to the arguments of events and functions.
  • Added functions and hasFocus to the "core" object. #229 #238 #235

Bugfix

  • Fixed a bug where the toolbar would not disappear when reselecting after selecting a text range in balloon mode. #212
  • Fixed a bug where the toolbar would not disappear from the table when in balloon mode. #194
  • Fixed a bug with the position of the balloon toolbar in divs with automatic overflow. #216
  • Fixed a bug where history update and change event would not be called after using align button. #195
  • Fixed a bug where the table was edited even when the editor was "disabled". #210
  • Fixed a bug in the setOptions method. #202
  • Fixed a bug where the history object was not removed immediately when calling the destory function. #226
  • A bug that prevented the dialog window from working correctly when the imageFileInput option value was "false" was fixed. #230
  • Fixed a bug that caused an error when adding "media(image, video)" with the setContents function in the fullPage option. #229
  • Updated a how to create custom plugins and how to create "container" plugins. #225

Maintenance

  • Added events:
    onFocus, onBlur, onImageUploadBefore, imageUploadHandler
  • Methods added to the core object:
    commandPlugins, splitNestedElement, splitElement, detachList, actionCall
  • Methods added to the util object:
    setStyle, isFreeFormatElement, getFreeFormatElement, mergeSameTags, getArrayItem, detachNestedList, sortByDepth

v2.25.0

15 Jan 15:09
6765fa4
Compare
Choose a tag to compare

Translation

  • German(de) translation has been fixed.

Enhancement

Bugfix

  • Fixed a bug that position of placeholder to be incorrect when opening a notice.
  • Fixed a bug that focus to disappear after text align.
  • Fixed bug where text was not aligned in IE browser.