This release contains an experiment that introduces the ability to drag and drop to move items around in the structure view. Default implementations are provided for single document editors as well as for DITA maps (in the fontoxml-dita add-on). Applications with customized structure view configuration or other special requirements may need to register one or more custom operations using the new adddraganddropoperation @ fontoxml-structure-view/src/adddraganddropoperation.js API. Please refer to our guide for more details. The experiment can be turned on by setting enable-experiment/drag-and-drop-in-structure-view-sidebar @ fontoxml-structure-view/src/setdefaultconfiguration.js to
It is now possible to mark parts of a document as read-only using the new configureAsReadOnly API. Read-only elements and their children are greyed out and may not be modified in any way. If the fontoxml-annotations add-on is used, it is possible to allow comments to be placed in read-only elements by setting the
It is now possible to use FontoXML Development Tools to create and upgrade an editor, and convert a XML schema. You only need a licence file, which you can get from us. No passwords or manual schema zipping required. Update (or install) FDT by running
npm install --global @fontoxml/fontoxml-development-tools. To see the new commands, install your license file and run
fdt editor --help.
The Find & Replace drop now allows searching by whole words only, by checking the corresponding checkbox.
allowMergingWithAncestorCVK option may be used to have Fonto automatically remove elements that are nested in equivalent elements specified by a selector. This can be used, for instance, to remove overlapping bold tags pasted in text that is already bold.
All families now support the
isAutoremovableIfEmptyoption, which enables the element to be removed automatically once all its content is removed and the cursor is no longer inside. This is set by default for configureAsInlineFormatting.
The new editEditorSidebarTab API allows overriding configuration properties (such as the label, priority or icon) for a preexisting sidebar.
Previously, when using an Fx component which renders a button with drop, toggling the drop was always possible. When using components inside the drop that execute an operation, it's possible that all of these components are disabled. In order to provide control over the state of a drop button in an operation context, we've made the following changes:
FxOperationsSplitButtonWithDropMenu has two new optional props:
dropButtonStateOperationData. The operation/data passed to these props are only used to determine the state of the button, the returned state should represent the state from the contents of the drop.
onClickprop on ButtonWithDrop is now deprecated and will be removed in the next major release. The API for this component was overloaded since it conditionally rendered a split button based on the
onClickprop. The new SplitButtonWithDrop component replaces what previously was the result of a ButtonWithDrop with an
- A few changes have been made to VirtualList and VirtualGrid:
selectedItemsprop is now deprecated on both components and will be removed in the next major release. Instead, we now provide a
idToScrollIntoViewprop to scroll items into view (which the
selectedItemsprop did previously). Visualising the rendered item as selected should be done from within the
- A new prop named
scrollIntoViewDirectionhas been added to both components, allowing you to set the direction in which items are scrolled into view (when updating the
- In order to create a hyperlink to a URL, we've added
targetprops to TextLink. When
hrefis set, the component will render an <a> element with the specified href and target attributes.
textAlignCVK option can be used to control the alignment of text within block-like families.
- We have restored the ability to set an
outputClasson structure view items as a hook for custom styling (rendered as the
cv-output-classattribute). Applications using this feature should note that the HTML structure of the structure view may change between releases.
The new operation insert-row-on-tab allows inserting a new row to a table when the last cell is reached and tab is pressed. Applications can add this to their tab keybinding alternatives to take advantage of this functionality. See the operation's documentation for details and an example.
The fontoxml-table-flow-xhtml add-on now supports setting alignment to "char" using the xhtml-set-cell-horizontal-alignment-character operation. Note that this type of alignment will not currently be visualized in the editor.
- This release introduces new XQuery features, such as XQuery modules and using some parts of XQuery in Operations.
Previous releases of FontoXML contained an error that caused validation to be skipped for any attribute in a non-default namespace. These attributes will now be validated according to the schema. Note that
xs:anyAttributesupport is currently still limited to allowing attributes in any namespace on an element if
anyAttributeis set in the schema type for that element. If this change causes issues for your application, it can be disabled by setting the enable-experiment/validate-attributes-in-unknown-namespaces configuration value to
false, which causes Fonto to revert to the old behavior.
- An issue has been resolved that caused the toggle-inline-formatting and toggle-inline-frame operations to affect elements in elements configured as one of the out-of-order families, such as configureAsInlineAnchorToStructure.
- An issue has been resolved where copying content and pasting it into a new position would sometimes cause inline formatting to be lost.
- An issue has been resolved where the element menu widget would be shown behind adjacent frames that are in close proximity to each other.
- Scrolling sheet frames into view in embedded mode now correctly positions the top of the sheet frame at the top of the screen instead of scrolling slightly too far in some cases.
- DITA URLs that specifically target the root element in a document (using a fragment containing the root element's ID) now correctly resolve to that root element.
- The operations drop button in the structure view no longer disappears when clicked again to close the drop.
- The Find & Replace interface will no longer sometimes display "0 of X" results in some cases.
- Resolved an issue where validation of the xs:anyURI simple type incorrectly rejected values containing spaces.
- Resolved an issue introduced in the 7.3.0 release that caused the blue focus border to not update correctly when moving between different sheet frames belonging to the same document.
- Resolved an issue where the fontoxml-track-changes add-on would mark the wrong character as added in repeated sequences of the same character.
- The CMS browsers provided by fontoxml-cms-browser now correctly disable the submit button when browsing to another folder.
- The Line family now correctly responds to the
- A bug in MS Edge prevented selections from crossing multiple paragraphs. The issue has been reported to Microsoft, and a work-around has been implemented.
- Some XML parser errors were not reported correctly if parsing the whole document failed.
- Resolved an issue where the set-attributes command did not correctly validate the result, which could lead to "operation failed" errors in some cases.
- Resolved an issue where XPath queries involving attribute nodes could return unexpected results. As a convenience, Blueprint#getParentNode now returns the
ownerElementfor attribute nodes, as these nodes never have a
- Fixed a regression in 7.3.0 where the setContextNodeIdToTopicrefReferencingCurrentDocument no longer returned the node ID of the map when the cursor is in the map's title.
- Fixed a typo that caused the development server's
--release-locks-on-state-requestoption to have no effect.
- An oversight caused the selection to never be marked as backwards when evaluating the state of operations. This caused some operations to be disabled in cases when they should not be. This has been corrected.
- The Ctrl+Shift+V / Cmd+Shift+V "paste as plain text" keyboard shortcut provided by some browsers now correctly pastes text without formatting.
- When copying multiple list items, these will now be correctly pasted as a new list.
- Previously, the add header row operation would be disabled when the next row contained one or more row spanning cells. Now, this operation will be enabled and any spanning cell will be split. This behaviour is now consistent with that of the remove header row operation.
- Double or triple clicking on non-editable elements such as deletions no longer expands the selection at its original location.
- An FDSTextLink that uses an a element with href is now properly disabled when its isDisabled prop is set to true (previously you could still click on it to open the href in a new tab/window).
- Clicking on multiple overlapping squiggles (such as comments) now targets the smallest squiggle, making it easier to select the intended one.
- Documents that are out of sync with the version in the CMS now display a reload option in the corresponding structure view operations menu.
- The fontoxml-publication-preview add-on now takes pop-up blockers into account and immediately displays a spinner while the preview is being generated. It now opens a warning modal if the browser prevented this preview window from opening, allowing the user to retry.
- If FontoXML has to insert additional elements to make the result of an operation (such as splitting an element) valid, it now prefers inserting the configured default text container over other options allowed by the schema.
- MathML objects are no longer redrawn whenever the surrounding content changes, which both improves performance and reduces flicker in such cases.
- A grey representation of the current selection is now shown while other parts of the UI have focus. When focus returns to the editor, the selection re-appears as the usual yellow highlight.
- We have reworked some of our internals that drive the way documents are rendered in the browser and how selections are translated between the browser and the XML documents. As a result, it is now possible to use the mouse to place the cursor in a number of places that previously could not be reached.
- Document validation has been optimized to use less memory for very large documents. This should result in faster startup times as well as a more responsive editing experience.
- Opening the properties sidebar tab no longer has a large impact on typing performance in the highlighted element.
- The way the structure view is updated has been optimized to improve typing performance while the corresponding sidebar tab is open.
- The way the breadcrumbs are updated has been optimized to improve typing performance.
- Table validation has been optimized a little to improve the performance of operations that modify table structures.
- Activating operations that consist of a single custom mutation using their keybinding is now more efficient as Fonto no longer computes their results twice. This also applies to several built-in operations such as hard-return.
The sidebar provided by the fontoxml-structure-view add-on is now labelled "Outline", as user testing revealed this term to be better understood by users. Note that applications can use the new editEditorSidebarTab API to change the label.
- The spinner used while the XML source sidebar tab is loading is now consistent with the spinners used in other sidebar tabs.
- Document previews that take a while to generate now display a loading indicator while rendering.
- Text placeholders are no longer selected when backspacing into them, as this frequently caused trouble when attempting to delete the parent element.
- Using Blueprint's setData method on nodes that are not CharacterData now results in a readable error, instead of causing operations to fail with a cryptic message later on.
- The web reference modal provided by fontoxml-web-references now warns but no longer blocks insertion when given an invalid URL.
- Registering custom XPath functions using registerCustomXPathFunction now warns if the prefix used for the function is not registered. Use the NamespaceManager to register the namespace corresponding to any prefix used by your application.
- The prefix property which was required in all MathML related operation is now determined by namespace configuration in FontoXML. It may be removed from the editor configuration.
- The enable-experiment/refrain-from-merging-differently-configured-nodes experiment has concluded, and the corresponding configuration value has been removed. Whether merging is allowed is now always controlled by
- The structure view configuration has been simplified for editors where multiple hierarchy nodes may be from the same document; the results of the
recursionQueryare automatically filtered to ignore nodes corresponding to hierarchy nodes, preventing duplicate entries.
- The appearance and behavior of the createLabelQueryWidget and createIconWidget widgets is now more consistent with the other widgets.
- The Card component now only shows hover styles when the
onClickprop is specified.
- We've reduced the maximum width of the M and L modal sizes so the scale of modal sizes is more evenly divided on regular sized desktop and laptop screens. We've also included a new modal size XS, especially meant for small text-only modals.
- Refreshing the page while on the error page now returns to the editor instead of showing the same error message again.
- The fontoxpath library has been updated to version 2.10.0. Please refer to the release notes for more information on what's new.
- We have upgraded the messageformat library used for localization to version 2.0.4. Please refer to the release notes of that library for more information on what's new. Note that this version is less forgiving of syntactical errors in localization messages. In particular, dashes are no longer allowed in identifiers such as placeholders or cases in a
selectoperator. Because of this, the attributes editor's
button-with-value-from-modalfield type is now represented as
buttonWithValueFromModalin localization messages. We have also updated the localization tools to detect this case in existing message bundles.