apostrophe
Advanced tools
Changelog
3.39.1 (2023-02-02)
@apostrophecms/attachment:rescale
task now works correctly. Thanks to Waldemar Pankratz for this contribution.Changelog
3.39.0 (2023-02-01)
table
to the rich text toolbar. Enabling table
allows you to create tables, including td
and th
tags, with the ability to merge and split cells. For now the table editing UI is basic, all of the functionality is there but we plan to add more conveniences for easy table editing soon. See the "Table" dropdown for actions that are permitted based on the current selection.superscript
and subscript
may now be added to the rich text widget's toolbar
option.image
to the rich text toolbar. This feature works reliably, however the UI is not mature yet. In particular you must search for images by typing part of the title. We will support a proper "browse" experience here soon. For good results you should also configure the imageStyles
option. You will also want to style the figure
tags produced. See the documentation for more information.div
tags in the rich text toolbar, if you choose to include them in styles
. This is often necessary for A2 content migration and can potentially be useful in new work when combined with a class
if there is no suitable semantic block tag.@apostrophecms/attachment:download-all --to=folder
command line task is useful to download all of your attachments from an uploadfs backend other than local storage, especially if you do not have a more powerful "sync" utility for that particular storage backend.loadingType
option can now be set for image-widget
when configuring an area
field. This sets the loading
attribute of the img
tag, which can be used to enable lazy loading in most browsers. Thanks to Waldemar Pankratz for this contribution.image-widget
module: loadingType
and size
. These act as fallbacks for the same options at the area level. Thanks to Waldemar Pankratz for this contribution.bluebird
) and fallback (file.crops || []
) to @apostrophecms/attachment:rescale
-taskChangelog
3.38.1 (2023-01-23)
de-de
(note the lowercase country name). This was inadvertently introduced in an effort to improve support for locale fallback when generating static translations of the admin interface. Version 3.38.1 brings back the content that temporarily appeared to be missing for these locales (it was never removed from the database), and also achieves the original goal. However, if you created content for such locales using 3.38.0
(released five days ago) and wish to keep that content, rather than reverting to the content from before 3.38.0
, see below.i18n:rename-locale
task can be used to move all content from one locale name to another, using the --old
and --new
options. By default, any duplicate keys for content existing in both locales will stop the process. However you can specify which content to keep in the event of a duplicate key error using the --keep=localename
option. Note that the value of --new
should match the a locale name that is currently configured for the @apostrophecms/i18n
module.Example:
# If you always had de-de configured as a locale, but created
Changelog
a lot of content with Apostrophe 3.38.0 which incorrectly stored
node app @apostrophecms/i18n:rename-locale --old=de-DE --new=de-de --keep=de-de
Changelog
3.37.0 (2023-01-06)
mergeWithCustomize
when merging extended source Webpack configuration. Introduce overideable asset module methods srcCustomizeArray
and srcCustomizeObject
, with reasonable default behavior, for fine tuning Webpack config arrays and objects merging. More info - the Webpack mergeWithCustomize docsplaceholderImage
option that works like previewImage
(just specify a file extension, like placeholderImage: 'jpg'
, and provide the file public/placeholder.jpg
in the module). The placeholderUrl
option is still available for backwards compatibility.docId
is now properly passed through array and object fields and into their child schemas.@apostrophecms/polymorphic-type
name alias @apostrophecms/polymorphic
. It was causing warnings
e.g. A permission.can() call was made with a type that has no manager: @apostrophecms/polymorphic-type
.webpack.extensions
configuration is not applied to the core Admin UI build anymore. This is the correct and intended behavior as explained in the relevant documentation.previewImage
option now works properly for widget modules loaded from npm and those that subclass them. Specifically, the preview image may be provided in the public/
subdirectory of the original module, the project-level configuration of it, or a subclass.Changelog
3.36.0 (2022-12-22)
shortcut
option for piece modules, allowing easy re-mapping of the manager command shortcut per module.Changelog
3.35.0 (2022-12-21)
linkWithType
option. This is equivalent to the old apostrophe-rich-text-permalinks
module but is included in the core in A3. See the documentation for details.anchor
toolbar control in the rich text editor. This allows named anchors to be inserted. These are rendered as span
tags with the given id
and can then be linked to via #id
, providing basic support for internal links. HTML 4-style named anchors in legacy content (name
on a
tags) are automatically migrated upon first edit.?
will display the list of available shortcuts. Developpers can define their own shortcuts by using the new @apostrophecms/command-menu
module and the commands
property. Please check the keyboard shortcut documentation for more details.bulletList
and orderedList
TipTap toolbar items now work as expected.credential
package with credentials
to fix the mout
Prototype Pollution vulnerability. There was no actual vulnerability in Apostrophe or credential due to the way the module was actually used, and this was done to address vulnerability scan reports.Changelog
3.34.0 (2022-12-12)
initialModal: false
property.node app help [yourModuleName]:localize
and node app help [yourModuleName]:unlocalize
).