Redactor Custom Styles
Version 5.0.0
February 8, 2024
Added
- Added Craft 5 compatibility.
Version 4.0.3
January 25, 2023
Added
- Added a link style dropdown to the example Redactor config file.
Version 4.0.2
June 29, 2022
Changed
- Added a SVG to
_examples/redactor/resources/
to demonstrate setup of custom icons. - Updated the default icon for text color.
- Added the HTML button to the example Redactor config file.
Fixed
- Fixed a bug where formatting didn’t work if
args
was set to a string in the button’s config. (#32) - Fixed button alignment for buttons without an icon.
Version 4.0.1
May 25, 2022
Added
- Button and dropdown titles are now translatable.
Fixed
- Fixed a bug where content was not syncing to the input in some cases. (#31)
- Fixed some specificity issues with example styles.
Version 4.0.0
April 14, 2022
Added
- Added Craft 4 compatibility.
Changed
- Custom icons can now be added by uploading SVGs to the config/redactor/resources/ folder.
- Removed build tools for example styles.
- Removed the setting to define a custom resources path.
Version 3.0.4
August 10, 2020
Changed
- Updated styles for Redactor plugin 2.7
Version 3.0.3
April 2, 2020
Changed
- Updated styles for Craft 3.4
Version 3.0.2
June 7, 2018
Fixed
- Fixed a JavaScript error that could occur when the Redactor plugin was used in Matrix fields.
Version 3.0.1
May 22, 2018
Changed
- All plugin assets are now served with versioned URLs.
- Redactor plugin version 2.0.0 is now added to the Composer dependencies.
Version 3.0.0
May 16, 2018
Added
- Added Craft 3 and Redactor 3 compatibility.
- Button configs now accept a
api
setting, which can be set to define the Redactor API to use. - It is now possible to define icons for toolbar buttons added through the plugin.
- Icons for existing buttons can be overridden with the
customButtonIcons
Changed
- The plugin got renamed to Redactor Custom Styles.
- The Redactor plugin got renamed to
customstyles
. - The Redactor config to define buttons got renamed to
customStyles
. - The Redactor config to define the default position for buttons got renamed to
customStylesDefaultAddAfter
. - The
args
setting for button configs is now directly passed to the Redactor API. - Custom CSS files for the Control Panel are now automatically included from the config/redactor/resources/ folder. The path can be configured with the
resourcesPath
config setting.
Removed
- Removed the
clear
setting for button configs. Use"api": "module.inline.clearformat"
instead.
Version 2.1.3
February 23, 2017
Changed
- Updated the example Redactor config files for Redactor II 2.0.
Version 2.1.2
July 15, 2016
Changed
- Updated the example Redactor config files.
Version 2.1.1
July 12, 2016
Changed
- Custom CSS files for the Control Panel are now automatically included from the craft/config/redactorinlinestyles/ folder.
Version 2.1.0
July 11, 2016
Changed
- It is no longer possible to configure icons for toolbar buttons, the feature is now available in a separate plugin Redactor Icon Buttons.
- The
buttonsAdd
setting now allows to explicitly set the buttons’ indexes, this allows to use the same syntax inbuttonsAdd
and informattingAdd
. - The plugin no longer comes with pre-configued default buttons. Please use the provided example files as a starting point instead.
buttonsAdd
andbuttonsAddAfter
as settings in redactorinlinestyles.php config files are now deprecated.- Custom CSS files for the Control Panel are now automatically included from the craft/config/cp/ folder. The
cssFile
config setting is now deprecated. - The plugin now requires PHP 5.4+.
Version 2.0.5
July 5, 2016
Changed
- The plugin now uses a different Redactor API to apply attributes to tags,
inline.format
now seems to work reliably to apply them (Redactor 1.2.5). - Prevent line-breaks button now uses
<span>
tags again, now that Redactor doesn’t strip them any longer (Redactor 1.2.5).
Version 2.0.4
March 9, 2016
Fixed
- Fixed a Javascript error that occurred in Craft 2.6 when the Redactor config file had arrays with NULL values in it (e.g., caused by a trailing comma).
Changed
- Updated JSON config files in the examples folder, removed trailing commas.
Version 2.0.3
February 2, 2016
Added
- Added Composer support.
Version 2.0.2
December 15, 2015
Added
- Added tooltips to icon buttons.
- Added a color dropdown to the Example-1 configuration.
Changed
- The plugin's default configuration now uses the new textual style buttons. Removed the media query to show icons for smaller viewport widths.
- Disabled button active state styles, they only worked for
<strong>
and<em>
buttons.
Version 2.0.1
November 20, 2015
Changed
- Dropdown styles for default and example configs updated for Redactor II 1.1.
Fixed
- Prevent line-breaks button now uses
<nobr>
tags, it's currently not possible to add<span>
tags. - Fixed the editor styles for
<kbd>
and<nobr>
.