SDK 1.0.1108.44
WebView2 Runtime 98.0.1108.44 or higher.
Release notes: https://docs.microsoft.com/en-us/microsoft-edge/webview2/release-notes
CKEditor4 class and template
Class:
NEW: HtmlFile property: you can change default html file location.
NEW: ExecCommand method: shortcut for javascript 'editor1.execCommand' call.
CHG: GetData(*BLOB)/LoadFile/SaveFile methods now return boolean values.
NEW: CustomScripts method: useful to customize CKEditor definitions.
NEW: OnInstanceReady event: Raised when CKEditor 'instanceReady' event is raised.
NEW: OnBeforeCommandExec event: Fired before the command execution when execCommand is called.
NEW: OnAfterCommandExec event: Fired after the command execution when execCommand is called.
NEW: OnDialogShow event: Fired when a dialog is shown.
NEW: OnDialogHide event: Fired when a dialog is hidden.
NEW: OnSetDataCompleted event: Raised when CKEditor 'setData' call is completed.
Template:
NEW: template prompt "Path to html file": allows to change default html file location.
NEW: template prompt "Open maximized".
CHG: template prompt "Data variable" now allows to use the variables not only from Data Schematic pad.
iframe support
NEW: OnFrameCreated event: Raised when a new iframe is created.
NEW: OnFrameDestroyed event: Raised when the iframe is removed or the document containing that iframe is destroyed.
NEW: OnFrameContentLoading event: Raised before any content is loaded.
NEW: OnFrameDOMContentLoaded event: Raised when the initial HTML document has been parsed.
NEW: OnFrameWebMessageStringReceived, OnFrameWebMessageJsonReceived events: Dispatches after web content sends a message to the app host via chrome.webview.postMessage.
NEW: OnFrameScriptResult event: Dispatches when a script has finished and returned a result.
All iframe events are located in Embed Tree under 'Events (iframe)' branch.
NEW: TFrameManager class that handles all frame instances.
NEW: GetFrameManager method that returns a TFrameManager instance.
NEW: TClaEdgeFrame class represents an <iframe> instance and has the methods similar to main edge class: AddDefaultHostObjectToScript, ExecuteScriptAsync, PostWebMessageAsJson, PostWebMessageAsString. The TClaEdgeFrame instance is accessible in generated code in any iframe event procedure.
Navigation ID
Navigation events (OnNavigationStarting, OnContentLoading, OnDOMContentLoaded, OnNavigationCompleted,) now pass the ID of the navigation.
AdditionalAllowedFrameAncestors
The events OnNavigationStarting and OnFrameNavigationStarting now have AdditionalAllowedFrameAncestors argument that enable developers to provide additional allowed frame ancestors.
The app may set this argument to allow a frame to be embedded by additional ancestors besides what is allowed by http header X-Frame-Options and Content-Security-Policy frame-ancestors directive.
Media API
NEW: IsDocumentPlayingAudio property: Indicates whether any audio output is playing.
NEW: IsMuted property: Indicates whether all audio output from this WebView2 is muted or not.
NEW: OnPlayingAudioStateChanged event: Raised when document starts or stops playing audio, or when the mute state changes.
Download Positioning and Anchoring API
- Changing the position of the download dialog, relative to the WebView2 bounds. You can anchor the download dialog to the Download button, instead of the default position, which is the top-right corner.
- Programmatically open and close the default download dialog.
- Making changes in response to the dialog opening and closing.
NEW: OpenDefaultDownloadDialog method: Open the default download dialog.
NEW: CloseDefaultDownloadDialog method: Close the default download dialog.
NEW: IsDefaultDownloadDialogOpen property: True if the default download dialog is currently open.
NEW: DefaultDownloadDialogMargin property: The default download dialog margin relative to the WebView corner specified by DefaultDownloadDialogCornerAlignment.
NEW: DefaultDownloadDialogCornerAlignment property: The default download dialog corner alignment.
NEW: OnDefaultDownloadDialogOpenChanged event: Raised when the IsDefaultDownloadDialogOpen property changes.
PrintToPdf example notes
Since the signatures of the methods OnNavigationStarting and OnNavigationCompleted have been changed, the derived methods of prn2pdf class must be changed accordingly. See EasyEdgeDemo.app for correct definitions.
Miscellaneous
CHG: Visible property now read/write (was write only).
FIX: Template support for web controls placed on TAB controls which in turn placed on parent TAB controls.
Deployment
Two tips were added in the doc.
This release is available, free of charge, to all customers who have an active maintenance and support subscription plan.