Skip to content

Releases: JiHong88/suneditor

v2.19.1

30 Sep 09:34
Compare
Choose a tag to compare

Translation

  • English translation has been fixed. (hilite -> highlight) #125 (@lorefnon)

Enhancement

  • Fix usage when the Editor is rendered in a popup window. #126 (@lorefnon)
  • Fixed the link generation after selecting the text range.
  • Added "iframe", "pullPage", "iframeCSSFileName" options.
  • Added "position" option.
  • Added "codeMirror" option.
  • Added "onPaste" and "showInline" event to functions.
  • The "formats" option has been modified to use custom tag as well.

Bugfix

  • Fixed a bug where paste (ctrl + v) was empty when cutting or copying text wrapped with the return line (shift + enter) in Firefox. #128 (@sudwebdesign)
  • A bug that did not apply negative values to the sticky toolbar option has been fixed.

Maintenance

  • The class name of suneditor-contents has been modified.
    • float-left, right, center, none -> __se__float-xxx
    • solid, dotted, dashed -> __se__xxx
  • The addDocEvent, removeDocEvent methods, _wd, and _ww objects have been added to core.
  • The getOffset method in util has been modified.

v2.18.0

07 Aug 14:15
Compare
Choose a tag to compare

Enhancenment

  • The setOptions function has been added.
    It's can reset or add options. #114(@PleachiM)
  • Template plugins has been added.
    You can add templates in the templates property of the options. #115(@PleachiM)
  • Added sort and caption buttons to the resizing module.
    스크린샷 2019-08-07 오후 11 06 09
  • The icons in the editor has been changed.
  • Fixed the "on" method to be called when calling a submenu on "core".

Bugfix

  • Fixed a bug where the bottom line also changed when changing a node after selecting an entire line. #116(@rafael-develop)
  • Fixed a bug where all lines were deleted when changing nodes when the caret was in front.
  • Fixed a bug where the balloon toolbar would sometimes not render properly.
  • Fixed a bug where table cell multiselect was not working properly when there were merged cells.
  • A bug that caused the color list to not display correctly in IE and Edge when overriding "colorList" has been fixed.
  • Fixed a bug that caused an error in the "destroy" function when there was no resizing bar.
  • A bug that caused the focus to not move to a table cell when the table cell was clicked after the figcaption tag was clicked has been fixed.

Maintenance

  • The default width of "toolbar" has been changed from "max-content" to "auto".
  • When using the "appendContents" and "setContents" functions, the content is added to match the editor's format.
  • Added "setContents" method to "core" object.

v2.17.3

23 Jul 09:11
Compare
Choose a tag to compare

Enhancenment

  • Added the sort button to the resizing module.

Bugfix

  • Fixed a bug where the width of the image was intermittently 0 when uploading images from "insertImage".

Maintenance

  • Added "access denied" error exception handling to "getPageStyle" method.

v2.17.2

22 Jul 11:51
Compare
Choose a tag to compare

Translation

Enhancement

  • The color picker has been modified to look natural when you change the color list.
  • Added The "insertImage" method to upload images outside the editor.
  • Added "imageUploadSizeLimit" option to limit image upload size.
  • Added "formats" option to change list of formatBlock.
  • Added "charCounter" option to show the current number of characters in the bottom bar.
  • Added "maxCharCount" option to limit the number of characters in the editor.
  • Added "minWidth" and "maxWidth" options.
  • When pasting images and videos, modified to convert to the format of the editor.
  • Modified to update the status of "imagesInfo" also when deleting an image by selecting a range.

Bugfix

  • Fixed a bug where the getContents method returned an empty value when there was no text in the editor.
  • Fixed a bug where pasted iframe tags did not resize correctly.
  • Fixed a bug that the history stack was not immediately updated when an image was deleted.
  • Fixed a bug where the link's controller was rendered in the wrong position when the link was in the heading tag.
  • Fixed a bug where attributes of HTML were copied when adding text by dragging drop.

Bugfix in v2.17.0

  • Fixed a bug that image caption was set z-index higher than toolbar (fixed in v2.17.1)
  • Fixed a bug that the image editing controller did not render when the image was inside the "A" tag. (fixed in v2.17.2)
  • Fixed A bug that caused an error when pasting the image tag contained in the "A" tag. (fixed in v2.17.2)

Maintenance

  • Modified to operate only backspace, delete, and enter keys when sizing module is active.
  • The getOffset method of the util object has been improved.

v2.16.3

05 Jul 16:19
Compare
Choose a tag to compare

Enhancement

  • Replaced the zeroWidthSpace that was entered when creating an line with the br tag.
  • Added an activation effect to the FormatBlock list menu.
  • Added an activation effect to the List button.
  • Modified color selector design slightly.

Bugfix

  • Fixed a bug where table cells were selected when scrolling on mobile.
  • Fixed a bug that the return value of the getListChild and getListChildNodes methods of the util object contained br tags.
  • Fixed a bug that the max size, min size icons of the table controller did not display properly.

Maintenence

  • Added exception handling related to the br tag to nodeChange method of the core object.

v2.16.2

02 Jul 16:11
Compare
Choose a tag to compare

Translation

  • Russian translation added.

Enhancement

  • The "print" and "preview" features has been improved.

Bugfix

  • Fixed a bug where the value of the "height" option was applied when the "minHeight" option value was entered as a numeric type.

Maintenance

  • The openWindowContents method has been removed from the core object and the print and preview methods have been added.
  • Deleted the code that calls notice when an error occurs during image upload. (Error message call during server upload is the same as before.)
  • Added getPageStyle method to util object

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.