Releases: GetmeUK/ContentEdit
Cloning of elements when dragging them
Fix for clearing the backround on ImageFixtures
1.3.4 Fix for clearing the backround on ImageFixtures
Fixed issue where ImageFixtures could not accept src values as data URIs
1.3.3 Fixed issue where ImageFixtures could not accept src values as data URIs
Fix for `src` method against `ImageFixture`
Fixes issue where setting the src against an image fixture previously incorrectly converted the src value to lowercase.
Minor fix
Change to the approach fixtures take
This release fixes a number of issues with the previous release img-fixture element. The key change however is how we handle fixtures in general. It is now expect that fixtures will return their entire HTML body not just the internals, for example a Fixture > Text element previously of the form:
<p>
Foo
</p>
Would have returned:
>>> Pre 1.3.0
<- Foo
>>> 1.3.0 onwards
<p>
Foo
</p>
For the same reason a new release will follow shortly for ContentTools which supports this new approach and which allows fixtures to be inspected in the editor.
Introduction of image fixtures
New features
- New element type
ImageFixture
added.ImageFixture
s are specifically designed to be used as fixtures (unlike images which don't work well as fixtures).
Bug fixes
- Fixed issue with images when no width or height specified (thanks to @dlob)
Minor enhancements and bug fixes
Enhancements
- Support for controlling the behaviour or whitespace trimming using the
ContentEdit.TRIM_WHITESPACE
setting.
and<br>
tags will not be stripped from the end of editable elements if TRIM_WHITESPACE is set to false. - Support for controlling the line endings used to format the HTML output of editable elements. This allows for a minified version of the of the HTML to be output by setting:
ContentEdit.INDENT = '';
ContentEdit.LINE_ENDINGS = '';
Bug fixes
- Added surrounding
'
quote characters tourl('some-url')
values on thebackground-image
property in inline styles for theImage
element. Without on some OSs the background image want display. - Fixed issue with sub ordered lists
<ol>
not parsing correctly. - Fixed issue with IE no longer capturing an error when attempting to programmatically
blur
acontenteditable
element which was causing the browser to require the user to click twice on an element to select it.
Tab indent support on PreText elements
This release primarily adds support for tab indent (and unindent) on PreText elements. At this stage it needs some in the wild testing however given tab did nothing previously it shouldn't negatively effect the user experience if there are problems to be resolved.
Minor fixes
- Fix for issue inserting BR tags into empty paragraphs.
- Fixed bug where br tags could not be inserted into empty text elements using the return+shift key combination.
Note: Accidentally skipped a minor release number.