xhtml
- auto-gen TOC: {:toc}# Class: xhtml
xhtml
new xhtml()
SCEditor XHTML plugin
Since: - v1.4.1|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 342
Members
<_static_> allowedAttribs :object
Allowed attributes map.
To allow an attribute for all tags use * as the tag name.
Leave empty or null to allow all attributes. (the disallow list will be used to filter them instead)
Type:
*object*
Since: - v1.4.1|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 760
<_static_> allowedEmptyTags :Array
Array containing tags which should not be removed when empty.
Type:
*Array*
Since: - v2.0.0|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 807
<_static_> allowedTags :Array
Array containing all the allowed tags.
If null or empty all tags will be allowed.
Type:
*Array*
Since: - v1.4.1|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 785
<_static_> converters :Array
Tag conveters, a converter is applied to all tags that match the criteria.
Type:
*Array*
Since: - v1.4.1|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.converters.js, line 7
<_static_> disallowedAttribs :object
Attributes that are not allowed.
Only used if allowed attributes is null or empty.
Type:
*object*
Since: - v1.4.1|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 774
<_static_> disallowedTags :Array
Array containing all the disallowed tags.
Only used if allowed tags is null or empty.
Type:
*Array*
Since: - v1.4.1|
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 796
Methods
toSource(isFragment, html, context, parent) → {string}
Converts the WYSIWYG content to XHTML
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
isFragment |
boolean | ||
html |
string | ||
context |
Document | ||
parent |
HTMLElement | optional |
Source: out/C:/Users/John/repos/SCEditor/src/formats/xhtml.js, line 405
Returns:
Type string