Skip to content

Releases: JiHong88/suneditor

v2.16.1

30 Jun 17:55
Compare
Choose a tag to compare

Translation

Enhancement

  • Table header, cell multiple selection, cell merge, cell split function are added to table plugin.
  • Improved arrow position of balloon toolbar and fixed width value to 'auto'.
  • Modified on onImageUpload event to also work when adding image as url.
  • Added the remainingFilesCount argument value to the omImageUpload event.
  • Modified the dialog to close when the ESC key is pressed.
  • Modified to be able to register function in controllersOn method.

Bugfix

  • Fixed a bug that the onChange event did not work when clearing all contents of the editor. #106(@davidkonrad)
  • Fixed a code that caused an error when there was no corresponding plugin when clicking an image or table.
  • Fixed bug that since 2.15.3, the currently selected value of font and font size list is not displayed.
  • Fixed a bug where the range selection did not work properly when removing text formatting in certain situations.
  • Fixed a bug where text formatting was not modified when there was only text node in a table cell.
  • Fixed bug a sticky toolbar location.
  • Fixed bug that H[1- 6] tag was not pasted.
  • A bug that caused the span tag to be removed when returning to the WYSIWYG mode in code view mode has been fixed. #102(@magoyo)

Maintenance

  • The mouseDown event has been added (only registered when there is a table plugin).
  • The audio tag have been added to the list of available tags. #103(@sudwebdesign)
  • A getOverlapRangeAtIndex method has been added to the Util object.
  • A nodeChange method updated and bug fixed.
  • Modified the names of most css classes in the editor.
  • Added TH, TD to format element.
  • The nodeChange method has been improved.
  • The eval function that was being used incorrectly has been deleted. #commitcomment-34106068(@sirlancelot)
  • Updated dependencies and language, icon file.

v2.15.3

01 Jun 16:52
Compare
Choose a tag to compare

Enhancement

  • Added imageUploadHeader option.
  • Fixed to remove the current line if there is image, video etc in the next line when using Delete key on blank line. #100(@DeZZar)
  • After selecting image and video components, component is moved down when enter key is pressed. #100(@DeZZar)
  • After selecting images and video components, the components are deleted when delete or backspace key is pressed. #100(@DeZZar)
  • When adding components such as table, image, and HR in the list, modified it to be added inside the LI tag.
  • Fixed to remove list and apply format tag when using format tag in list.

Bugfix

  • Fixed an error that was not working when editing the pasted image for the first time.
  • Fixed a bug where the enter key did not work when using pre, quotblock in figuare tag since v2.15.0.
  • Fixed bugs in list and format plugins and added exception handling.
  • Fixed a bug where the format tag inside was erased when the text node was modified when the format tag was in format tags such as p, div, h1-6, li.
  • And Several other bugs fixed.

Maintenance

  • Added insertComponent, getSelectedElementsAndComponents methods to core object.
  • Added ignoreNodeChange, getNodePath, getNodeFromPath methods to util object.
  • Updated core-nodeChange method.

v2.15.2

22 May 18:48
Compare
Choose a tag to compare

Enhancement

  • French translation added. (Provided by @sudwebdesign #95)
  • A min size (auto), max size (100%) button has been added to the controller in the table. #93(@DeZZar)
  • The table controller has been modified to appear in two places, at the top of the table and in the cell.
  • When using a list, the list is merged if list is above or below it.
  • It has been modified to be added to the list when using hr in the list.
  • It has been modified to be added outside of the list when using pre, blockquote in the list.
  • When using pre, blockquote, it applies based on the outermost node in the current selection range.
  • Added maxSize and minSize entries to the Language file.
  • After adding a block, the action to add a format to the line below has been removed.

Bugfix

  • Fixed a bug that caused the toolbar to have a margin when using full screen in Sticky Toolbar mode. #98(@sudwebdesign)
  • Fixed bugs when in list adding and deleting items. #94(@DeZZar)
  • Fixed a bug where cells in tables were not displayed correctly intermittently. #96(@sudwebdesign)
  • Fixed a bug where the margin space was applied to the entire editor when using the tab key or indent key outside the table.#93(@DeZZar)
  • Fixed a bug where the list removal range was applied to all items in the list when the backspace key was pressed at the first end of the list.
  • Fixed a bug that was not recorded in history stack when using tab key.
  • Fixed a bug in the activation buttons.
  • Fixed a bug that removed blank lines when changing nodes after selecting all.
  • Fixed a bug to keydown event, node change.

Maintenance

  • The colorPicker module design has been modified.
  • The design of the resizing, link, table controllers has been modified.
  • The style of the Pre, blockquote tag has been modified.
  • Fixed an exception of browsers by setting scope directly in editor when using shortcutkey (CTRL + A).
  • Added removeItemAllParents, getElementDepth, isTable method of Util object.
  • Added color to title of the table.
  • Added isList and isListCell methods to Util object.
  • Modified the condition of format elements.
  • Modified correctly a regular expressions that can cause bugs.
  • Modified the util.convertHTMLForCodeView method.
  • Modified the core.detachRangeFormatElement, core.applyRangeFormatElement method.
  • Deleted getSelectedRangeFormatElements method of Util object.

v2.14.0

03 May 20:41
Compare
Choose a tag to compare

Enhancement

  • Added Custom tooltips.
  • Added onChange event method to userFunction. #90(@redone80, @DeZZar)
  • The primary node has been changed to:
    B > STRONG, U > INS, I > EM, STRIKE > DEL.
  • Added a delete button to the "colorPicker" module.
  • Added highlight effect to the submenu.
  • Added a default value to the "fontSize, fontFamily" menu.
  • When using formats such as "Code, Blockquote, OrderList" and so on, we modified to exit the format by typing "enter" key on the last line or "backspace" key on the first line.
  • The "undo, redo, outdent, save" buttons have been modified to not behave according to the situation.
  • The editor's overall style and icons have been modified.

Bugfix

  • Fixed a bug where cells in the table were deleted when backspace was entered in the last cell of the table. #91(@DeZZar)
  • Fixed a bug where the highlighting effect of command buttons such as "Bold", "Underline"... was not applied right away.
  • Fixed a bug where the editor did not return properly when using code view and fullscreen mode together.

Maintenance

  • The nodeChange method has been improved.
  • The editor's default text color has been changed to "# 333".
  • The language file has been modified.
  • cleanHTML Paste has been improved.
  • The "wrapToTags" method has been modified to applyRangeFormatElement.
  • The detachRangeFormatElement method has been added to the "core" object.
  • The "copyObj" method of the "util" object has been deleted.
  • The getEdgeChildNodes method has been added to the "util" object.
  • Values entered within 0.5 seconds have been modified to be stored in the "history" stack at once.

v2.13.1

22 Apr 15:01
Compare
Choose a tag to compare

Enhancement

  • Updated undo and redo functions, which previously operated as "document.execCommand".
  • Added getPositionIndex function to "util" object.

Bugfix

  • Fixed a bug "insertHTML" of user function.
  • Fixed a bug where format blocks, images and videos could not be deleted properly with backspace.

Maintenance

  • Modified the color and border radius of the editor.
  • Added "redo" and "undo" to buttons that are disabled in code view mode.
  • Added History object to "core" object for undo, redo.
  • Added onlyZeroWidthSpace function to "util" object.

v2.12.4

17 Apr 04:42
Compare
Choose a tag to compare

Enhancement

  • The color picker module highlights the selected color.

Bugfix

  • Fixed a bug where the icon was not visible when adding custom buttons. customPlugin
  • Fixed a bug that did not resize the component's cover when putting the description after resizing the image and video.

Maintenance

  • Added "util" attribute to use "util" object in "core" object. document
  • Added style: line-height: 1.5

v2.12.3

22 Mar 12:05
Compare
Choose a tag to compare

Hotfix

  • Print did not work since version 2.8.3.
  • Fix a bug that the hex color input field of the colorPicker module did not work since version 2.9.4.

color_text_input

  • Inline, Balloon mode did not work properly since version 2.12.1

Bugfix

  • Fixed a bug where when using the dialog plugin after creating more than one editor, the results were applied to the editor that had the focus before.

Maintenance

  • Deleted the selected cell style in the table
  • Added z-index to controllers

v2.12.0

21 Mar 11:03
Compare
Choose a tag to compare

Enhancement

  • The language file has been modified to be added to the global object SUNEDITOR_LANG when used in HTML.
  • Added Chinese(zh_cn) translation.

v2.11.1

19 Mar 11:40
Compare
Choose a tag to compare

Enhancement

  • Added onImageUploadError event function - called when the image is upload failed.
  • Added argument imageInfo to onImageUpload function.
  • Added youtubeQuery option - the query string of a YouTube embedded URL. #83(@realdigger)
  • Added Japanese translation.

Bugfix

  • Fixed a bug where the height value was fixed when adding the first image.

v2.10.2

14 Mar 03:49
Compare
Choose a tag to compare

Enhancement

  • Added german translation. (Provided by @Gundolf68)
  • Added save-button and 'callBackSave' option.
  • Added src property to 'imagesInfo' (editor.getImagesInfo()).

Bugfix

  • Fixed a bug where characters would disappear intermittently when changing nodes
  • The German file was included in the language index

Maintenance

  • Changed the "index" argument type of onImageUpload event function from String to Number