Releases: GetmeUK/ContentTools
Fix for issue with fixtures on revert
Fixes an issue where fixtures would re-inserted into the DOM incorrectly on reverting changes.
Changes to how fixtures are handled
I've been looking to improve support for Fixture
s over the last couple of weeks, not least because we are using text and image fixtures (via the img-fixture
tag) heavily in a couple of new projects. This release changes the approach to how fixtures are saved to reflect the latest release of ContentEdit 1.3.0 which means that the html()
output for fixtures now includes the outer html not just the inner.
IMPORTANT If you're not currently using fixtures this change wont effect you, if you are then this change is breaking and will mean that content saved as fixtures will no longer work as only the inner HTML will currently be saved but the outer HTML is now required.
Fixtures have always been a little experimental and this latest release is a step towards a more stable interface for them.
New features
- You can now inspect and changes the attributes for fixtures within the inspector (this is experimental).
- You can now disable the the alerts on cancel/refresh by setting the
ContentTools.CANCEL_MESSAGE
tonull
(#269 - thanks to all who requested this).
Image fixtures, bug fixes and uzbek
New features
- Support for managing the new ImageFixtures element is now in place, and example can be found at the top of the sandbox demo page. Image fixtures make it easy to manage background images against elements such as hero images or user avatars. Docs to follow shortly.
- Translation for Uzbek added (thanks to @ruslanmedia), that makes 25 languages (including English).
Bug fixes
- Fixed issue with the link dialog not being contained on the page, see issue #397 (thanks to @timemrah for the report).
- Fixed issue with undo/redo being triggered unintentionally when entering non-latin characters, see issue #390 (thanks to @deartify).
- Fixed issue with the image uploader
fileready
handler being called twice, first with an empty value then the file, see issue #385 (thanks to @Trinitonn for the report).
External update
- Updated to release 1.2.2 of ContentEdit/
Bug fix and Arabic translation
This patch provides a fix for issue #423 (thanks to uncanny for the bug report and suggested fix) and a translation for Arabic kindly provided by XLBro.
Minor bug fixes
This patch release fixes issue #404 (thanks to @damienflament for the report). You should now use detach
not detatch
(a warning will be used if the detatch
method is called).
Minor restructure and additional translation
- We now have a Persian(farsi) translation thanks very much to @jafar-rezaei .
- The icon font has now been moved into the images build folder and the
$image-path-prefix
is used in the path to theicon.woff
making it easier to use the libraries SASS libraries directly (in particular in a webpack build).
Bug fixes and minor enhancements
Part of this release is an update to ContentEdit 1.2.1, please view the release notes for the enhancements and bug fixes that introduced: https://github.com/GetmeUK/ContentEdit/releases:
Thanks to:
- @carpusmedia for #266 (introduction
ContentEdit.LINE_ENDINGS
option). - @megamuf for #323 (flagging an issue with
background-image
property when value orurl()
is not surrounded in quotes). - @cgriffin4 for originally reporting #331 (an issue with ordered lists
<ol>
containing sub lists). - @kure- for reporting #339 (an issue with selecting content in IE).
- @Hoiy for reporting #312
- @boyum for the Norwegian translation.
- @joenilson for the Spanish translation.
- @nzod for reporting and fixing issue #344 (an issue which prevented the selection styles with no element).
Bug fixes
- Resolved issue #312 where in some scenarios the regions highlights effect could get stuck on.
Tab indent support and bug fixes
Long time in coming but a new release is out with some much needed bug fixes, updated documentation and a few additional features:
Bug fixes
- Fixed issue where clicking the ignition switch buttons twice in quick succession would break the editor - thanks to @Hoiy for the spot and report.
- Fixed issue where
EditorApp.revertToSnapshot
(used when calling undo/redo) would corrupt keylastModified
timestamps against the root element and region elements preventing the correct changes being reported on save - thanks very much to @ChrisKanger for spotting and reporting this.
Features
- We now have a Danish translation thanks very much to @Reached.
- Tab indentation in PreText elements is now a feature - I love this one since most of the time when I'm using CT I'm writing technical documentation with examples, suggested a long time ago by @bfintal (thank you :)) took a little longer than planned to implement.
- It's now easy to capture events for when tools are applied, you can now listen
tool-apply
andtool-applied
events against the EditorApp. The event includes details of the tool class applied, the element it's applied to and if applicable the content selection.