Multiple Strings
Sample
Use relative paths to the file or folder. For example /wp-content/custom-folder/ or /file.php. Press enter to add each exclusion.
If you are using individual js components, dist/js/purify.min.css
is required.
Use relative paths to the file or folder. For example /wp-content/custom-folder/ or /file.php. Press enter to add each exclusion.
Use data-disallowed-keys
attribute in textarea
markup to disable keys from being pressed. Add ASCII codes of keys seperated by commas that needs to be disabled.
For example: data-disallowed-keys="97,98,99,100"
<div class="sui-form-field"> <label for="unique-id" id="unique-id-label" class="sui-label">Label</label> <textarea placeholder="Enter a new value" id="unique-id" class="sui-multistrings" aria-labelledby="unique-id-label" aria-describedby="unique-id-description" ></textarea> <p id="unique-id-description" class="sui-description">Field description</p> </div>
If you're importing single files, make sure to get multistrings.js from SUI.
In case you initiate this element after DOM, you must call it again like this:
SUI.multistrings();