$attributes = $element->getElementsByTagName('attributes')->item(0);
if ($attributes !== null) {
$optionalAttributeElements = [
- $saveData ? 'html' : 'attributeHtml' => 'html',
+ 'html' => 'attributeHtml',
'required' => 'required',
'usetext' => $saveData ? 'usetext' : 'useText',
'validationpattern' => $saveData ? 'validationpattern' : 'validationPattern'
$bbcode,
[
'classname' => '',
- 'htmlclose' => [
+ 'htmlopen' => [
'cdata' => true,
'defaultValue' => ''
],
- 'htmlopen' => [
+ 'htmlclose' => [
'cdata' => true,
'defaultValue' => ''
],
$attribute = $document->createElement('attribute');
$attribute->setAttribute('name', (string) $attributeNumber);
- if (!empty($attributeData['html'])) {
+ if (!empty($attributeData['attributeHtml'])) {
$html = $document->createElement('html');
- $html->appendChild($document->createCDATASection($attributeData['html']));
+ $html->appendChild($document->createCDATASection($attributeData['attributeHtml']));
$attribute->appendChild($html);
}
if (!empty($attributeData['validationPattern'])) {