Version 3.0.4

March 16, 2023
  • Fixed several styling issues with Redactor’s fullscreen mode. (#450, #445)

Version 3.0.3

December 31, 2022
  • Fixed a bug where image URLs would be broken after selecting them, if the URL contained any underscores. (#441)

Version 3.0.2

June 30, 2022

Fixed

  • Fixed a bug where HTML changes could be reverted, if a link on image had been clicked on prior to switching to the HTML view. (#419)

Version 3.0.1

June 29, 2022

Fixed

  • Fixed a bug where non-admin users weren’t able to insert images or link to assets. (#409)
  • Fixed a bug where Redactor fields weren’t being configured with the current site properly. (#382, #412, #414)
  • Fixed a bug where the “Site” setting within Edit Link modals wasn’t working properly. (#410)

Version 3.0.0

May 3, 2022

Added

  • Added Craft 4 compatibility.

Version 2.10.12

March 16, 2023
  • Fixed several styling issues with Redactor’s fullscreen mode. (#450, #445)

Version 2.10.11

December 31, 2022
  • Fixed a bug where image URLs would be broken after selecting them, if the URL contained any underscores. (#441)

Version 2.10.10

June 30, 2022

Fixed

  • Fixed a bug where HTML changes could be reverted, if a link on image had been clicked on prior to switching to the HTML view. (#419)

Version 2.10.9

June 29, 2022

Fixed

  • Fixed a bug where Redactor fields weren’t being configured with the current site properly. (#382, #412, #414)
  • Fixed a bug where the “Site” setting within Edit Link modals wasn’t working properly. (#410)

Version 2.10.8

May 3, 2022

Fixed

  • Fixed a bug where linking to multiple files would have unwanted consequences. (#389)

Version 2.10.7

April 26, 2022

Fixed

  • Fixed a bug where removing and re-inserting a link would remove other links in the same paragraph. (#384)

Version 2.10.6

April 7, 2022

Fixed

  • Fixed a bug where removing a font color using the fontcolor plugin would not update the field data. (#376)

Version 2.10.5

February 25, 2022

Fixed

  • Fixed a bug where the wrong site could be auto-selected in entry selection modals. (#372)

Version 2.10.4

February 23, 2022

Fixed

  • Fixed a bug where Redactor fields could use the wrong orientation. (#356, #370)

Version 2.10.3

February 18, 2022

Fixed

  • Fixed a bug where linking to a Craft element inside a table would change the original link text.

Version 2.10.2

February 17, 2022

Fixed

  • Fixed a bug where links were always prepended to the beginning of the text. (#368)

Version 2.10.1

February 16, 2022

Fixed

  • Fixed a bug where Redactor fields wouldn’t initialize properly when they were the first field in a new Matrix block. (#364)

Security

  • Improved HTML sanitization.
  • Fixed an XSS vulnerability.

Version 2.10.0

February 11, 2022

Changed

  • Redactor now requires Craft 3.6 or later.
  • The site selector dropdown now only appears for eligible links. (#360)
  • Static element URLs that contain query string parameters are no longer converted to reference tags.

Deprecated

  • Deprecated craft\redactor\events\ModifyPurifierConfigEvent. craft\htmlfield\events\ModifyPurifierConfigEvent should be used instead.

Fixed

  • Fixed a bug where Live Preview wouldn’t work on older Craft versions. (#359)

Version 2.9.1

February 7, 2022

Fixed

  • Fixed an error that occurred when saving content that contained empty links. (#355)

Version 2.9.0

January 31, 2022

Added

  • Redactor fields now convert static element URLs to reference tags on save. (#249)
  • Entry selection modals now include a site selector. (#242)
  • Image modals now support a Command/Ctrl + S keyboard shortcut. (#290)

Fixed

  • Fixed a bug where the field value wasn’t updated after content was removed via a context bar. (#348)
  • Fixed a bug where context bars weren’t visible within editor slideouts. (#239)
  • Fixed a bug where empty Redactor fields could be seen as not empty during validation. (#260)
  • Fixed a bug where some inline styles could be removed even if they were allowed by field plugins. (#315)
  • Fixed a bug where volume and transform names were getting double-encoded. (#297)
  • Fixed a bug where inserting a link into a large Redactor field would cause the browser to jump to the top of the field. (#344)
  • Fixed a bug where inline styles within tables weren’t getting removed. (#350)
  • Fixed a bug where translation messages weren’t getting registered for JavaScript properly.

Changed

  • Updated Redactor.js to 3.5.2.

Version 2.8.8

August 2, 2021

Fixed

  • Fixed a Javascript error that occurred when closing Live Preview. (#299, #282)

Version 2.8.7

May 1, 2021

Changed

  • The list of Redactor config files is now sorted alphabetically. (#308)

Fixed

  • Fixed a bug where privacy-enhanced YouTube video embeds were getting stripped out by HTML Purifier. (#312)

Version 2.8.6

April 13, 2021

Changed

  • Improved the field’s focus styles.

Version 2.8.5

December 8, 2020

Added

  • Added the enforceButtonOrder Redactor config option, that allows setting an arbitrary button order. (#218)

Fixed

  • Fixed a bug where Redactor would sometimes have trouble adding buttons to the toolbar. (#293)

Changed

  • Updated Redactor.js to 3.4.7.
  • Updated German and French translations.

Version 2.8.4

November 30, 2020

Changed

  • Updated Redactor.js to 3.4.6. (#281)

Version 2.8.3

October 19, 2020

Fixed

  • Fixed a bug where protocol-relative YouTube and Vimeo video URLs were getting stripped by HTML Purifier. (#278)

Version 2.8.2

October 14, 2020

Added

  • Added an afterInitializeRedactor event which allows further customization after Craft has initialized its plugins. (#275)

Fixed

  • Fixed a bug where the Custom Redactor Config setting wasn’t validating as JSON if it contained any leading/trailing whitespace. (#279)

Version 2.8.1

September 30, 2020

Changed

  • Updated Redactor.js to 3.4.3. (#272)

Version 2.8.0

September 30, 2020

Added

  • It’s now possible to create a Default.json HTML Purifier config, which will be used by default, or if the specified config file is missing.
  • The default HTML Purifier config now allows video embeds from YouTube and Vimeo.

Version 2.7.5

September 22, 2020

Fixed

  • Fixed a bug where “air” toolbar buttons had very low contrast. (#271)

Version 2.7.4

September 2, 2020

Fixed

  • Fixed content styling issues. (#266)

Version 2.7.3

August 28, 2020

Fixed

  • Fixed the Redactor status bar styling. (#256)
  • Fixed various content styling issues when the UI Mode was set to “Normal”. (#262)

Version 2.7.2

August 25, 2020

Changed

  • The showHtmlButtonForNonAdmins setting now defaults to true for existing fields. (#257)

Fixed

  • Fixed a bug where Redactor was removing empty alt attributes on images when saving. (#259)

Version 2.7.1

August 14, 2020

Changed

  • Improved the styling of fixed toolbars.

Fixed

  • Restored the Asset Sources setting. (#254)
  • Fixed a bug where images with query strings in their URLs could be missing from the input. (#255)

Version 2.7.0

August 9, 2020

Added

  • Added the “UI Mode” field setting.
  • It’s now possible to change the transforms of selected assets. (#134)
  • Added the “Default transform” setting, which can be used to set a default transform that should be applied to images. (#223)
  • Added a field setting that determines whether non-admin users should be allowed to edit the field HTML. (#129)
  • It’s now possible to define the Redactor config on a per-field basis. (#144)
  • It’s now possible to create a Default.json Redactor config, which will be used by default, or if the specified config file is missing. (#247)
  • Added support for the linkNewTab Redactor config setting. (#93)
  • Added the “All entries” source to entry selection modals. (#228)
  • Added support for including query strings in linked element URLs. (#235)
  • Added craft\redactor\Field::EVENT_DEFINE_REDACTOR_CONFIG, which makes it possible to modify the Redactor config at runtime. (#226)

Changed

  • Redactor fields now store fallback URLs on reference tag values, to be used if the linked element is no longer available. (#168)
  • Redactor now automatically opens the “Edit image” modal after inserting a single image.
  • Redactor now only displays elements that have URIs when linking to an element.
  • It’s now possible to include SVG images within field values, without them being removed by HTML Purifier. They will be sanitized with SVG Sanitizer instead.
  • Redactor now requires Craft 3.5 or later.
  • Updated Redactor.js to 3.4.2.

Fixed

  • Fixed a bug where the default Redactor config would not include image and link buttons. (#224)
  • Fixed a bug where Redactor would sometimes re-focus the editor, causing the page to jump. (#222)

Version 2.6.1

March 18, 2020

Changed

  • Updated Redactor.js to 3.3.4.

Fixed

  • Fixed a bug where toolbar menus were getting a lower z-index than element editor HUDs. (#215)
  • Fixed a bug where the source view would get excess top padding when the minHeight setting was set. (#211)

Version 2.6.0.1

February 14, 2020

Fixed

  • Fixed a bug where the editor would not show any buttons when the default Redactor config was used. (#208)

Version 2.6.0

February 13, 2020

Added

  • Added support for Redactor’s buttonsAddFirst, buttonsAddBefore, buttonsAddAfter, and buttonsAdd config settings. (#158)
  • Added the “Show unpermitted volumes” setting, which determines whether the field should show volumes that the user doesn’t have permission to view (disabled by default for new fields; enabled by default for existing fields). (#203)
  • Added the “Show unpermitted files” setting, which determines whether the field should show files that the user doesn’t have permission to view per the “View files uploaded by other users” permission.
  • Added craft\redactor\events\ModifyPurifierConfigEvent.
  • Added craft\redactor\Field::EVENT_MODIFY_PURIFIER_CONFIG, which makes it possible to modify the HTML Purifier config at runtime. (#147)

Changed

  • The “Remove inline styles” setting now also applies to <img> tags.
  • Redactor fields no longer remove style attributes from <img> tags on load. (#192)
  • Updated Redactor.js to 3.3.2.

Fixed

  • Fixed a bug where it could be impossible to scroll within a Redactor field after pasting in HTML. (#117)
  • Fixed a bug where Redactor was aggressively removing newlines. (#171)
  • Fixed a bug where it wasn’t possible to link to cross-site elements. (#188)
  • Fixed a bug where the toolbar wasn’t sticking to the top of the window on scroll. (#202, #157)
  • Fixed the position of the context bar that appears when clicking on links or images. (#201)
  • Fixed the position of the resize handle that appears when clicking on images with imageResizable enabled. (#205, #183)
  • Fixed a bug where it wasn’t possible to add multiple images at once. (#200)

Version 2.5.0

January 17, 2020

Added

  • Added the ability to create cross-site entry links. (#187)

Changed

  • Updated the field styles for Craft 3.4.

Version 2.4.0

September 13, 2019

Added

  • Redactor is now translated into German. (#131)
  • Redactor is now translated into French. (#145)

Changed

  • Redactor now requires Craft 3.2 or later.
  • Entry and category links within Redactor field values now point to the same site that the field’s element was loaded in. (#163)
  • Updated Redactor.js to 3.3.0.

Fixed

  • Fixed a style inconsistency between <h6> tags in the Format menu and how they actually look in the editor. (#142)
  • Fixed a bug where Redactor were causing page unload warnings. (#161)

Version 2.3.3.2

April 29, 2019

Fixed

  • Fixed an error that could occur after updating to Redactor 2.3.3. (#140)

Version 2.3.3.1

April 26, 2019

Fixed

  • Fixed an error that occurred when updating to Redactor 2.3.3 if any Redactor fields didn’t have a cleanupHtml setting saved.

Version 2.3.3

April 26, 2019

Changed

  • Split the cleanupHtml setting into three separate settings: removeInlineStyles, removeEmptyTags, and removeNbsp. (#125)
  • Updated Redactor.js to 3.1.8.

Fixed

  • Fixed a bug where linking files or assets would not work as expected. (#136)

Deprecated

  • Deprecated craft\redactor\Field::cleanupHtml.

Version 2.3.2

February 21, 2019

Changed

  • Updated Redactor.js to 3.1.7.

Fixed

  • Fixed a bug where full-screen editor would be obscured by the sidebar if the toolbarFixed config setting was set to false. (#120)
  • Fixed a bug where adding a second link in a list would not work as expected. (#104)

Version 2.3.1

January 30, 2019

Fixed

  • Fixed a bug where the “Image editor” button wasn’t showing up when selecting assets for non-admin users.

Version 2.3.0

January 22, 2019

Changed

  • Updated Redactor.js to 3.1.6.

Fixed

  • Fixed a bug where adding links inside lists would not work as expected. (#104)
  • Fixed a bug where adding links inside tables would not work as expected. (#98)
  • Fixed a bug where Redactor would leave extra markup in the HTML. (#106)

Version 2.2.1

January 17, 2019

Fixed

  • Fixed an error that occurred when updating to 2.2.0 if there were Redactor fields without the availableTransforms or availableVolumes set. (#112)

Version 2.2.0

January 16, 2019

Changed

  • Redactor for Craft CMS now requires Craft 3.1.
  • Improved Project Config compatibility.

Version 2.1.7

December 17, 2018

Changed

  • Updated Redactor.js to 3.1.4
  • Fullscreen plugin is now not available for use during Live Preview. (#94)
  • Redactor fields’ default HTML Purifier config now allows id attributes. (#82)

Fixed

  • Fixed a bug where image editor would be unavailable for inserted assets. (#95)
  • Fixed a bug where Redactor was not getting translated properly for Norwegian languages. (#99)

Version 2.1.6

August 21, 2018

Changed

  • Updated Redactor.js to 3.1.1

Fixed

  • Updating Redactor fixed a bug where inserting links to entries would not work in Firefox. (#61)
  • Updating Redactor fixed a bug where using the inlinestyle plugin would overwrite tags. (#58)

Version 2.1.5

July 30, 2018

Added

  • The plugin is now translated into Hungarian. (#73)

Fixed

  • Fixed a PHP error that could occur when editing elements with Redactor fields. (#74)

Version 2.1.4

July 27, 2018

Added

  • The plugin is now translated into Dutch. (#55)

Fixed

  • Fixed a bug where the fixed toolbar wan’t working. (#9)

Version 2.1.3

July 25, 2018
  • Fixed a bug where the fixed toolbar was not working. (#9)
  • Fixed a bug where it was impossible to define translation overrides. (#63)

Version 2.1.2

July 14, 2018

Fixed

  • Fixed a Javascript error for Redactor fields with no buttons defined in the config. (#68)

Version 2.1.1

July 13, 2018

Changed

  • Updated Redactor.js to 3.0.11.
  • 6th level headings are no longer displayed in all-uppercase in the editor. (craftcms/cms#2927)

Fixed

  • Fixed IE11 compatibility. (#46)
  • Fixed a bug where it wasn’t possible to edit links created using the File modal. (#54)
  • Fixed a bug where links created using the File modal would overwrite the selected text with the file title. (#54)
  • Fixed a bug where it was possible to initiate drag-and-drop uploading, which isn’t supported. (craftcms/cms#2920)
  • Fixed a bug where File and Image buttons were missing.
  • Fixed a bug where File modal was generating incorrect links.

Version 2.1.0

May 15, 2018

Changed

  • Updated Redactor.js to 3.0.9.
  • Improved Redactor field styles. (#49)

Version 2.0.1

May 7, 2018

Changed

  • The plugin now attempts to remove codemirror and source values from Redactor configs on install.
  • Redactor fields with the “Clean up HTML?” setting enabled now convert non-breaking spaces to normal spaces. (#24)
  • Updated Redactor.js to 3.0.8.

Fixed

  • Fixed a bug where inline styles created by the Alignment, Fontcolor, Fontfamily, and Fontsize plugins weren’t getting saved if the “Clean up HTML?” setting was enabled. (#41)
  • Fixed a bug where widgets embedded by the Widget plugin could steal focus from the fixed toolbar. (#37)
  • Fixed a bug where image resize handles would not be displayed correctly or at all when the imageResizable Redactor config setting was enabled. (#39)

Version 2.0.0.1

May 1, 2018

Fixed

  • Fixed a case-sensitivity issue. (#31)

Version 2.0.0

May 1, 2018

Added

Removed

  • Removed the Codemirror and Source plugins (no longer needed in Redactor 3). Redactor configs that included these plugins will be automatically updated.

Version 1.1.0

April 3, 2018

Changed

  • Updated Redactor.js to 2.12.
  • Redactor now comes bundled with all of Imperavi’s Redactor 2 plugins. (#14)

Fixed

  • Fixed a bug where empty field values would still normalize to a craft\redactor\FieldData object, rather than null.
  • Fixed a deprecation error when running Redactor on Craft 3.0.0-RC15 or later.
  • Fixed support for Redactor’s fixedToolbar option. (#9)
  • Fixed a bug where Redactor fields weren’t getting translated into the user’s preferred language, when available. (#12)
  • Fixed a bug where H4s were larger than H3s. (#15)
  • Fixed a bug where Redactor fields would not honor the imageTag config setting when inserting an image. (#10)

Version 1.0.1

January 15, 2018

Changed

  • Applied Craft’s “readable” text styles to Redactor inputs.

Version 1.0.0.1

December 10, 2017

Fixed

  • Fixed a bug where a document.ready event handler wasn’t getting registered correctly.

Version 1.0.0

December 4, 2017

Initial release.