File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -80,19 +80,6 @@ This will output:
80
80
<section class =" editor" ><p >Test</p ></section >
81
81
```
82
82
83
- ### Custom Tag
84
-
85
- ``` twig
86
- {% set yourHtml = '<p>Test</p>' %}
87
- {{ yourHtml|editor('section') }}
88
- ```
89
-
90
- This will output:
91
-
92
- ``` html
93
- <section class =" editor" ><p >Test</p ></section >
94
- ```
95
-
96
83
### Custom Class
97
84
98
85
``` twig
@@ -103,5 +90,5 @@ This will output:
103
90
This will output:
104
91
105
92
``` html
106
- <section class =" custom" ><p >Test</p ></section >
93
+ <div class =" custom" ><p >Test</p ></div >
107
94
```
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ public function testEditorCustomClass(): void
47
47
public function testEditorCustomTag (): void
48
48
{
49
49
$ this ->assertSame (
50
- '<div class="custom "><p>Test</p></div > ' ,
51
- $ this ->editorExtension ->editor ('<p>Test</p> ' , null , ' custom ' )
50
+ '<section class="editor "><p>Test</p></section > ' ,
51
+ $ this ->editorExtension ->editor ('<p>Test</p> ' , ' section ' )
52
52
);
53
53
}
54
54
You can’t perform that action at this time.
0 commit comments