Skip to content

Releases: JiHong88/suneditor

v2.9.2

12 Dec 07:06
Compare
Choose a tag to compare

Enhancement

  • Added mode option (classic, balloon, inline) ...Referenced by CKEditor5
  • Added toolbarWidth option (only applies in balloon, inline mode)
  • Modified the 'nodeChange' function to check the style so that it does not split the node that already has the same style applied.

Bugfix

  • Fixed a bug that caused strike shortcuts to working when the "shift" key was not pressed.
  • Fixed a bug where selectionNode was not updated immediately when setRange function was executed.
  • Fixed a bug that window events were working when the editor was not visible.
  • Contents style bug fix

Maintenance

  • Changed name context.user -> context.option

v2.8.5

23 Nov 19:22
Compare
Choose a tag to compare

Enhancement

  • Remove format - All works well on current supported browsers.
  • The node configuration that is created when the node change function is executed has been improved.

Bugfix

  • Fixed a bug not changed node after selecting all range in Firefox, Edge, IE.
  • Fixed a bug that prevented pasting under certain circumstances.
  • Fixed a bug that caused the "BR" tag to disappear or not work properly when changing nodes, including the "BR" tag.
  • Fixed a bug that text formatting did not work in image captions.

Maintenance

  • Modified name core.wrapRangeToTag -> core.nodeChange.
  • Modified removeEmptyNode method of util object.
  • Modified getSelectedFormatElements method of core object.
  • Added getContents method to core object.
  • Added createElement, createTextNode method to util object.

v2.8.0

10 Nov 18:05
Compare
Choose a tag to compare

Enhancement

  • Updated clean paste of "Word", etc.
  • Added notice module
  • Added user event function
  • Added options: "imageResizing", "videoResizing"
  • Added user function: "getImagesInfo"

Bugfix

  • Fixed a bug when edit pasted image.
  • Fixed a bug the image, video plugin.
  • Fixed a bug the resizing module

Maintenance

  • Modified resizing module: When it is an image, it returns to 'auto' size when clicking revert button.
  • Modified options: imageSize -> imageWidth, popupDisplay - full, local
  • Modify image server upload response value.

v2.7.1

05 Nov 19:56
Compare
Choose a tag to compare

Enhancement

  • Added rotate, revert button to resizing module.
  • Added caption select to video dialog.
  • Modified default width, height when "textarea"'s display style "none". (‘100%’, ‘auto’)
  • Modified popupDisplay option. (‘full’, ‘local’)
    Default value: ‘full’
  • Modified tab key action in editor. (behave similar to vscode)
  • Submenu does not turn off even if window is resized. (Works naturally on mobile)

Bugfix

  • Fixed a bug the code view mode of version 2.6.0 (div -> textarea)
  • Fixed a bugs the resizing module.
  • Fixed other bugs.

Maintenance

  • Updated language file.
  • Added “convertHTMLForCodeView” method to util object.
  • Modified method name : core.appendP -> appendFormatTag
  • Updated node change function.
  • Modified percent size function to image, video

v2.6.3

31 Oct 04:42
Compare
Choose a tag to compare

Enhancement

  • Added Sticky Toolbar mode.
    Added related options "stickToolbar".
  • When the "height" option is set to "auto", the length is increased without scroll.
    Added related options "minHeight", "maxHeight".
  • Added The "resizingBar" options, you can show or hide "resizingBar"
  • The submenu has been modified to calculate the location according to the screen size.

Bugfix

  • Fixed a bug a prevented the ability to modify image captions and video frames when you returned to WYSIWYG mode in Code view mode
  • Fixed a bug where IDs were added to "suneditor" even though there was no ID in "textarea" when creating editor.
    IDs are not created if there is no ID value.
  • Fixed a bug where checkboxes and radio buttons were not checked when a label was clicked when there was more than one editor.
  • Fixed a bug where button blurring was applied to also other editors when using code view when was more than one editor.

Maintenance

  • Added "Impact" font to default font array.
  • Modified context: context.tool.bar -> context.element.toolbar.
  • Modified option: videoX, videoY -> videoWidth, videoHeight.
  • Modified context: context.element.resizebar -> resizingBar
  • Changed event: editor mouseup event -> click event
  • Added variable: core._variable.minResizingSize
    Minimum size of editing area (65px)

v2.5.3

28 Oct 18:14
Compare
Choose a tag to compare

Enhancement

  • Update the features and design of the Color Picker module
  • Add options the “colorList”
  • Add “insertHTML” function
    Inserts an HTML element or HTML string or plain string at the current cursor position

Bugfix

  • Fix a bug when modifying directly inserted image element
  • Fix a bug of node change function when image div contains

Maintenance

  • Removed the default "http: //" of link plugin (Can use relative link)
  • Change icon of full screen
  • Add color picker module to module’s folder

v2.4.3

21 Oct 16:47
Compare
Choose a tag to compare

Enhancenment

  • The range selection is applied when using the "indent" function.

Bugfix

  • Fixed a bug where the position of the resizing div of the video tag inside the table did not display correctly.
  • Fixed a bug to "appendP" method of "core" object when inside TD tag.
  • Modify superscript tag style.
  • Indent's shortcut key was incorrect.
  • "Li" tag exception handling of table plugin.

Maintenence

  • Added "commandHandler" method to "core" object.
  • Added .jshintignore file.

v2.4.2

18 Oct 19:56
Compare
Choose a tag to compare

Enhancements

  • The style of the button module in the toolbar has been modified.
  • The distinction between button modules has become clear.
  • The style of the buttons has been modified.

Bugfix

  • When two or more suneditor were created, a bug that the tabs in the image interfered with each other was fixed.
  • Fixed an bug where the suneditor contained objects that the user would not use.

Maintenance

  • Add display style to contents tag that did not have display attribute.

v2.4.1

16 Oct 16:02
Compare
Choose a tag to compare

Enhancements

  • Add mirror(horizontal, vertical) button to resizing module
    Applied to image and video plugins
    (updated a Language file)

Maintenance

  • Add karma, jasmine, npmignore

v2.3.3

11 Oct 19:00
Compare
Choose a tag to compare

Enhancements

  • "getIncludePath" function of "util" object is run more exactly.
    (Used on preview : get the src path of "suneditor.min.css", "suneditor-contents.css" or first css file)

Bugfix

  • Fixed a bug to User function (disabled, enabled, appendContents, setContents)
    (It did not work properly in code view state)
  • Added default "text-align" property on css of suneditor
    (If the parent node of suneditor had a "text-align" attribute, it was affected.)
  • Fixed a bug to the "getSelectedRangeFormatElements" function of "core" object
  • Fixed a bug to the "wrapToTags" function of "core" object

Maintenance

  • Code optimization
  • Added .jshintrc file