Fixed issues in Content Editor for 12.0.0
A description of the issues fixed in the Content Editor
Editing issues
- Prevent two consecutive spaces
- This editor does not allow two consecutive spaces. Multiple spaces are not handled well by the editor and would for example cause cursor problems. The editor already prevented multiple spaces when pressing the spacebar. However there are other situations that can result in multiple spaces in the document and these are now fixed.
-
Cannot insert a link in some other elements than
paragraph -
The Insert link button was not enabled in situations where there are multiple elements that have the
hyperlinkrole, for example in a code block. -
Error when saving document with
conreftoxref -
When creating a
conrefto anxrefelement, an emptyhrefattribute was created on thexrefelement. - Template will overwrite existing attribute for empty children
-
When an element is applied on a selection, empty elements in that selection have their template applied again as well. When such an element has a template for an
attribute, the template value would overwrite the value in the document. Now the template is applied only to elements with content.
Copy/Paste issues
- Links are not pasted when pasting from Word 2013 into IE11
- With certain HTML structures, links were stripped out of the content when they were pasted. This was the case when copying HTML structures in Word 2013. Now the links are maintained and can be pasted from Word 2013 into IE11.
- Copy and cut do not place content on system clipboard when using the buttons in the UI
- Content was copied and correctly pasted when pasting within the same document, but it was not available for pasting to external applications. Now the content is placed on the system clipboard and available to external applications.
- Cut from the breadcrumbs sometimes leaves structure behind
- Cut would not cut the exact element, but a selection which in some cases did not include the entire element. This now fixed.
- Incorrect cursor behavior after pasting a table from external source
- After pasting a table from Microsoft Word for example, the cursor behavior in the editor would not be correct, and required several key presses instead of one to move from one cell to another.
TypeErrorwhen pasting some types of lists from Microsoft Word into Chrome- When a list with items with multiple paragraphs was pasted, this could not be processed correctly. Now you can even paste lists that include paragraphs.
API/Config issues
addEventListenerdoes not accept an object as second argument-
The
addEventListenerfunction was documented to accept both a function and an object as the second argument. Using an object was not working, and this option is now removed completely. hideStatusbarconfiguration option was ignored- This configuration option can now be used to disable the breadcrumb bar.
Other issues
-
IMEcommand is available when no document is loaded -
The
IMEcommand (and any button for theIMEcommand if configured for the toolbar) was always available even if no document was loaded. When it would be pressed in that situation, the editor would crash. Now the command is only available when there is a document loaded. - Find/replace becomes very slow in IE when a lot of results are found
- A somewhat slower response for longer documents is expected, but in IE the response time became unacceptable with more than 100 results. The speed is now reasonable for up to 1000 results, similar to the performance in Chrome and Firefox.
- Navigating away on error
- When an error occurred, the message would be shown for moment before navigating away to another screen. The editor is now no longer navigating to another screen when an error happens.
-
No support for
nextCatalogin theXML Catalog -
An error was shown when loading a catalog that points to another catalog using
nextCatalog. Now this is supported. - XML view collapses completely
- In some situations the XML view would collapse to the root element. This no longer happens.
- Inline SVG is not displayed in IE9+
- Inline SVG is now supported again in Internet Explorer.
- Incorrect reference stays stuck in loading state
-
When for example an
xreftried to display it's title from another location, and that failed, the display would keep showing loading. Now an error message is shown instead. - Maps in search results
-
Browsing for content reuse will now return DITA Maps (
ISHMasterDoc) similar to search results when theselectedtargettypeis set toconref,linkorhyperlink. [TS-5782|TS-8973]