You can create a custom attribute editor for configuring component attributes. Merchants use the custom attribute editor when setting a value for the component attribute in the Business Manager visual editor.
type
of the attribute for which you want to use a custom attribute editor to custom
and include an editor_definition
element for the attribute. The editor_definition
includes the custom attribute editor ID and optionally any configuration information that you want to pass to the custom attribute editor. .js
extension. For example, if the meta definition file for the control is magical.json
, name the script magical.js.iframe
element. The iframe encapsulates the code and styling of the editor and represents a self-contained sandbox environment in which the editor runs so that different custom attribute editors on the same page don't interfere with each other. The host and the custom attribute editor in the iframe communicate by passing events back and forth on a special messaging channel.© Copyright 2000-2023, Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. |
Show URL | Submit Feedback | Privacy Policy |