Change log and updates

4.2.2

  • Added: Support for readonly mode without disabling the toolbar by passing an object instead of true.
  • Improved: When control is invoked inside a cell, a 'Table' option is now available for adding rows or columns, improving clarity.
  • Fixed: editor.getJson method not working.
  • Fixed: Error when running the minified editor with NextJS.
  • Fixed: 'set' option failing to overwrite objects in settings (e.g., setting Layouts object).
  • Fixed: Click to edit not unbinding events properly.
  • Fixed: Focus not set in an empty paragraph when using the block.add event to insert one after adding a block.
  • Fixed: Issue with deleting a cell entirely within a nested table.
  • Fixed: Email plugin — undo issues affecting styles.
  • Fixed: Font color reset when switching back from the Background tab.
  • Fixed: Problem exiting a nested list when the cursor is in the last list item.
  • Fixed: Deletion issues in lists when the cursor is at the beginning of a list item.

4.2.1

  • Fixed: Replaced lookarounds regex with standard regex in Embed.
  • Fixed: typo in displayed hotkeys.
  • Fixed: In the ai.create event, AI did not consistently set the result when modifying the prompt.
  • Fixed: Made the link field mandatory when inserting a link.
  • Fixed: theme setup when destroying multiple editors.
  • Fixed: Fix applied to the destroy method.
  • Fixed: Addressed issue where pressing delete at the end of a list item with an empty item following it did not remove the empty item.
  • Fixed: issue with addbar placement when inserting a new line, adding a table with control + add, then pressing cmd + shift + o.
  • Fixed: AI plugin — changing the prompt with ai.create now correctly reflects in the preview label.
  • Fixed: Added optional inline styles for alignment and float settings on images with wrapWithStyle configuration.
  • Fixed: Resolved inline formatting issues when selecting an entire paragraph.
  • Fixed: In iframe mode, the frame now supports dark mode via the themeAttr setting.
  • Fixed: Added the ability to change the image link through the Link option.

4.2.0

  • Fixed: Incorrect translation of the Tone list in the AI Plugin.
  • Fixed: Repeatedly pressing the list button now converts the list into paragraphs.
  • Fixed: Parsing of images and links within the AI response.
  • Fixed: Issue in Breakline mode where text formatted as a heading remained plain text in the output html.
  • Fixed: Problem in the Mention Plugin where text before the inserted replacement was occasionally deleted.
  • Fixed: Issue when retrieving content in the Math Plugin.
  • Fixed: Issue with text input and Enter on iOS for the Korean language.
  • Fixed: Skipping empty paragraphs when using arrow keys in Firefox.

4.1.9

  • Improved: Settings and events for capturing images created by AI tools. See detailed description with examples.
  • Fixed: an issue where using Backspace to delete text in the second column would result in all content being deleted and the cursor jumping to the first column.
  • Fixed: an issue where before positition was not functioning correctly in the block.insert method.
  • Fixed: a bug where deleting an imagefrom the first column in a 2-column layout would cause unexpected behavior.
  • Fixed: Applied a fix to the getTextFromHtml method to enhance reliability.
  • Fixed: Counter Plugin Fix - a potential bug if the editor element is not available.
  • Fixed: AI Plugin - an issue where triple-clicking in the AI prompt textarea caused the field to lose focus.
  • Fixed: Image resize plugin - an issue where images in the email template would jump in size when being resized.
  • Fixed: a recurring issue where applying formatting (bold, underline, or italic) to button text would sometimes erroneously add an underline.
  • Fixed: Email plugin - a bug where the border-radius property was not being saved correctly for buttons in emails.
  • Fixed: an issue where setting minHeight and maxHeight and typing text to the bottom edge would prevent the scroll from adjusting when pressing Enter.
  • Fixed: Solution for AZERTY keyboard layouts.

4.1.8

  • Added: Noneditable parameter when setting and getting content as JSON.
  • Added: Settings to replace modals for Image and Link.
  • Fixed: Issue with inserting a table into an empty editor.
  • Fixed: Issue adding a list within a list.
  • Fixed: Issue of losing focus when inserting a link.
  • Fixed: Issue when dropdown “More formatting” loses position after clicking “Undo”.
  • Fixed: Collapse icon for Fullscreen does not work from the first click.
  • Fixed: image.getStates method does not work.
  • Fixed: Issue with deleting content within columns (layouts).
  • Fixed: Using app.editor.insertContent does not work to insert the br tag.
  • Fixed: Issue of replacing ‘&’ with ‘amp’ entity when inserting and editing embed code.
  • Fixed: Set the default image width to 100% in the Email plugin if the image does not have this attribute.

4.1.7

  • Fixed: Issue with empty AI queries working if there is no focus on the editor. Please update AI plugin too.
  • Fixed: The issue of pasting code into a Code snippet happens without formatting as a single line.
  • Fixed: Issue with inserting links on a new line.

4.1.6

  • Fixed: If you want to add an image in an empty text block and upload multiple images, only one image will be added.
  • Fixed: The shortcut ctrl+k/cmd+k does not open the dialogue for a new link (i.e. nothing occurs on hitting cmd+k)
  • Fixed: Issue with displaying spinner when AI prompt is empty.
  • Fixed: if you move 'html' button from toolbar to extrabar it will work and switch you into html mode but will not toggle back like it does in toolbar you end up stuck in html mode.
  • Fixed: The issue of resizing an image if it was float left/right and then make it ‘center’ or ‘none’.
  • Fixed: If there is only an image in the editor, you cannot add text or a list or any other content after the image using the Add button.
  • Fixed: Issue when navigating to the editor after pressing tab, Redactor has no focus for inserting an image or content.
  • Added: Tabindex setting.
  • Added: keepNameAttr and keepIdAttr on pasting.

4.1.5

  • Added: Limiter plugin that limits the number of characters entered.
  • Added: Non-deletable blocks.
  • Added: AI plugin - add the ability to make empty queries.
  • Added: Documentation Email plugin - how to set custom CSS and make responsive emails.
  • Added: Documentation: how to disable wrap and outset for images.
  • Improved: Insert emoji especially when the selection is not collapsed.
  • Improved: Do not turn off toolbar sticky if you switch to source mode
  • Improved: Ability to paste a list from plain text as separate lines separated by br tags.
  • Improved: Character count in Counter plugin.
  • Fixed: Context bar issue: Once a link is added to a content, it stays forever in a context toolbar.
  • Fixed: In some cases dropdowns and modals are incorrectly positioned.
  • Fixed: If you select all text with CMD+A and then use one of the arrow keys, all of the text disappears.
  • Fixed: Email plugin - command + Z breaks the height. Deleting any lines after this continues to shrink the height of the editor.
  • Fixed: Email plugin - setContent resets spacing configuration to 32px (and possibly other settings). Please use reset: false param. See documentation.
  • Fixed: Print plugin keeps a copy of the content.
  • Fixed: If you add a default class for P, change the element to H, but it still has the class from P.
  • Fixed: If the editor is in iframe mode, then Counter plugin does not work.
  • Fixed: Resizing images does not work on mobile. It shows NaNpx, and I can't drag the images.
  • Fixed: In iframe mode, if you delete all content, an error appears in the console and Redactor stops working.
  • Fixed: Modal for color selection on mobile, has wrong position.
  • Fixed: There is no way to disable/enable a specific button or toolbar buttons in the API.

4.1.4

  • Added: Readonly mode and setting.
  • Added: AI plugin - Add for AI request the ability to send additional data as it is done in Image.
  • Improved: Issue: there can be only one external toolbar on the screen. Now you can make it so that every instance editor has an external toolbar. To make all toolbars in a single target use the sharedTarget setting.
  • Improved: Removed delete video by spacebar so that it can be played.
  • Improved: Position of buttons in the toolbar when setting custom button layout.
  • Improved: Formatting and parsing in Breakline mode.
  • Improved: If a table cell is selected, make that when typing letters, they are typed inside the cell.
  • Fixed: todo template is not parsed correctly on save.
  • Fixed: Checkbox element of todo lists - ticking a box does not work in Firefox.
  • Fixed: replaceTags - doesn't replace b or i with strong or em, using the Italic/Bold always uses their default setting.
  • Fixed: The issue of replacing ampersand with html entities when retrieving content.
  • Fixed: Sometimes when dragging and dropping a block in Email mode, the editor freezes.
  • Fixed: When you switch to code mode and back, the empty div gets a space in the content.
  • Fixed: If you select the text and color it using the Fontcolor input, the selection is lost and you can't put the color in
  • Fixed: AI plugin - if you make a request with stream: false the content is simply deleted.
  • Fixed: AI plugin - if you generate text, paste it, then when you click on the AI button in the toolbar, it will not be a dropdown, but an AI tool will be inserted.

4.1.3

  • Fixed: Form elements parsing error if attributes contain '&' character.
  • Fixed: When duplicating a block with mergetag, an undefined instance appears as a result.
  • Fixed: Many fixes to inline formatting.
  • Fixed: Duplicate items in control dropdown.
  • Fixed: Plugin styles are not saved in breakline mode.
  • Fixed: Error when duplicating a list.
  • Fixed: Email plugin - even if dark theme is set to false dark mode is still generated in the email html.
  • Fixed: When inserting setJson content, then clicking between blocks puts focus in the block, but no block selection occurs.
  • Fixed: If you select a cell and press the spacebar, the cell is deleted.
  • Fixed: Addbar hide setting does not work.
  • Fixed: The issue with the Fontcolor plugin when you select the text color, many different span tags are created with different set of colors.
  • Fixed: The control dropdown doesn't work on mobile.
  • Improved: Ability to wrap todo in a label on output or using a template. See docs.
  • Improved: Todo - support unchecked template '[]' - without space.
  • Improved: Ability to insert multiple files via filelink.
  • Improved: Inserting a file as a link, including by dragging and dropping if the filelink plugin is connected.
  • Improved: Ai Plugin - markdown headings and lists with bold and paragraphs are not parsed.
  • Improved: AI plugin - remember if a column has been called and put the answer there.
  • Improved: Ability to implement custom tag insertion. See example.

4.1.2

  • Improved: minor code refactoring.
  • Improved: various small improvements when working with tables and lists.
  • Improved: selecting Column block in Pathbar.
  • Improved: work of enter if cursor is in an inline tag.
  • Improved: improved content parsing when content was pasted in source code mode.
  • Improved: AI plugin improvement if form prompt inserts inside div wrapper.
  • Improved: Embed - ability to play video.
  • Improved: Embed - recognize mp4 video when inserting in embed form.
  • Improved: Pasting from Google Docs.
  • Fixed: Email plugin - image alignment.
  • Fixed: Parsing does not work correctly if there are line breaks in tag attributes in html set in the editor.
  • Fixed: Selecting font family or font size does not hide dropdown.
  • Fixed: Simultaneous application of font color, size, and family.
  • Fixed: If you select text and end the selection so that the cursor falls on the control icon, the selection is deselected and editor.blur occurs.
  • Fixed: If you create a todo item and press backspace, an error occurs.

4.1.1

  • Added: Command palette - type slash (/) to open commands without leaving keyboard.
  • Added: ai.before.insert - event that occurs before the result is inserted into the content.
  • Added: Description of how to make styles using classes for fontcolor, fontfamily, fontsize plugins. See the corresponding plugins.
  • Added: Revolvapp template converter to html for Redactor.
  • Improved: Instant set text or background color in any plugin when hovering over a color in colorpicker.
  • Improved: AI plugin - parsing bold / italic markdown inside the returned response.
  • Improved: Embed can always put https in the url for youtube and vimeo.
  • Fixed: AI plugin - issues with adjusting the height of the editor in iframe mode.
  • Fixed: Many improvements in list formatting and navigation within a list using the keyboard
  • Fixed: In Chrome for Windows, it was not working correctly to select the wrapper and layout blocks when you clicked on the control's button.
  • Fixed: If you set a block with attributes in JSON, delete it, then do undo and do getJson, there will be no attributes in the resulting json
  • Fixed: Email plugin - After editing existing template data, if the template is changed from the template selection menu and the user performs an undo action, the old template's color theme will be restored to the data.
  • Fixed: Edit link modal is not properly aligned with editor.
  • Fixed: Sometimes when selected text is formatted (Underline, Bold, Italic ). Entire paragraph gets underlined.

4.1.0

  • Added: Possibility to work inside iframe see examples and setting.
  • Added: Examples of how the editor works with different frontend frameworks.
  • Added: Ability to read and create layouts exclusively by classes, see detailed description and layout setting.
  • Added: Detailed description of How to noneditable works.
  • Added: Example of Get a block after pressing enter key.
  • Added: scrollOverflow setting that makes toolbar sticky programmatically to work if parent elements have overflow property.
  • Added: JSON content setting: ability for an image to specify width and height in the style attribute.
  • Added: AI Plugin - added a lot of events, including error event, which allows you to realize the possibility of receiving a message from the server that the limits are over, i.e. actually give a response from the server and enable the event, with JSON response.
  • Fixed: AI plugin - if content is not selected and click item in dropdown then spinner appears, although there is no request.
  • Fixed: AI Plugin - catch pressing enter to send request + shift+enter as line break.
  • Fixed: AI Plugin - if you make prompt inside todoitem or listitem, the logic is wrong, the returned text should become just todoitem or listitem.
  • Added: Email plugin - ability to get and set with getJson / setJson API methods.
  • Added: Email plugin - ability to set preset templates using Templates plugin. Please see the example.
  • Fixed: Email plugin - fails to read text and all other parameters when setting content via setContent.
  • Fixed: Email plugin - background color of body is not reset when setting template via setContent.
  • Fixed: If you paste plain text, it is not split into paragraphs
  • Improved: Emoji plugin implementation of keyboard work when panel is shown when entering colon (:).
  • Improved: Emoji plugin ability to translate default group names.
  • Improved: Many improvements in Fullscreen plugin.
  • Improved: Many improvements in Mention plugin.
  • Fixed: Sticky toolbar should not work if the editor is disabled.

4.0.6

  • Fixed: Global Redactor.settings override local settings
  • Fixed: AI Tools — If you select all and make a prompt in stream mode from dropdown then no spinner loading appears in the content
  • Fixed: Email plugin— text size for the block is not read by default from the email settings
  • Fixed: Email plugin - if there was no email-option with styles in the template by default, getContent will not return the changes
  • Fixed: Email plugin - modal position does not take into account the margin/padding of the editor
  • Fixed: Email plugin - email-options are not read when setting content via setContent
  • Improved: Many improvements in modals, dropdowns and context bar.
  • Improved: Many improvements in Imageresize plugin
  • Improved: Many improvements if maxHeight setting is enabled in editor.
  • Improved: Many improvements when working with table
  • Improved: Many improvements in Mention plugin
  • Added: Snippets plugin
  • Added: Templates plugin
  • Added: Example how to add undo/redo on the extrabar
  • Added: Example of working with Grammarly
  • Added: AI Tools —ability to recognize code return and code insertion

4.0.5

  • Fixed: Email plugin. Issue with spacing loss on undo/redo.
  • Fixed: Now Filelink plugin icon is available when clicking on any block.
  • Added: Output setting to synchronize content with any external element on the page.
  • Added: Setting to show context bar on click.
  • Added: Many new settings for Colorpicker. It is used in all plugins that add text or background color.
  • Added: Setting to disable visible outline when focusing in a block - block.outline setting.
  • Improved: A lot of improvements in dropdown and modals display.

4.0.4

  • Fixed: AI Plugin. Issue where multiple promt textareas could be in the content at the same time.
  • Fixed: Email Plugin. Issue with changing the link for a button.
  • Fixed: Email Plugin. Issue with changing the caption for a button.
  • Fixed: Email Plugin. Issue with changing the background of a wrapper if there is a button in it.
  • Fixed: Email Plugin. Issue with text formatting.
  • Fixed: Email Plugin. If you change the body and content settings via Style Panel, the changes were not reflected in the output code.
  • Fixed: Email Plugin. Alignment plugin does not work correctly.
  • Fixed: Email Plugin. Option to add/remove columns and rows of the table.
  • Fixed: If there is an image on the left side of the column, clicking on the right column does not cause the focus to be set to an empty paragraph.
  • Fixed: The undo and redo buttons are missing commands.
  • Fixed: The image upload popup does not work when url parameter is false.
  • Fixed: An error occurs when deleting the first column in the table.
  • Fixed: Issue with stickyOffsetTop setting when using Fullscreen plugin.
  • Fixed: Some small fixes in documentation and code.
  • Improved: AI and Email plugin translation.
  • Improved: Display the active item in Font Family and Font Size plugins if the cursor is in an inline tag with a style.
  • Added: Event ai.before.send for AI plugin.

4.0.3

  • Fixed: Duplicate command works incorrectly, inserting duplicate block in wrong position.
  • Fixed: If you create an empty paragraph and apply heading format to it, the cursor disappears and you can't type text.
  • Fixed: If you enable the nostyle setting, it is not possible to put your own css class.
  • Fixed: There is an error if you insert an image, but the editor is not configured to upload images.
  • Added: Setting of border disabling in the editor container.
  • Added: Example with limited formatting.

4.0.2

  • Added: Redactor integration guide with Angular.
  • Added: Detailed instructions on how to make Layouts and grids.
  • Added: Instructions on how todo (checklists) work in Redactor.
  • Improved: Many improvements to Outlook email displays.
  • Improved: Dark mode email display in email clients.
  • Fixed: Unnecessary padding of lists in content.
  • Fixed: When resizing an image and switching the code to source mode, the resizer remains in place.

4.0.1

  • Improved: many improvements and fixes in Email plugin
  • Improved: small fixes in image editing and Image resize plugin.

4.0.0

Redactor 4 Release!