Skip to content

Commit 6c53b67

Browse files
committed
Add big lists demo with sample html for several list numbers
1 parent 78eb84b commit 6c53b67

3 files changed

Lines changed: 62 additions & 1 deletion

File tree

Example/AztecExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
FF629DC9223BC418004C4106 /* videoShortcodes.html in Resources */ = {isa = PBXBuildFile; fileRef = FF629DC8223BC418004C4106 /* videoShortcodes.html */; };
4444
FF9AF5481DB0E4E200C42ED3 /* AttachmentDetailsViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FF9AF5471DB0E4E200C42ED3 /* AttachmentDetailsViewController.storyboard */; };
4545
FFC41BDE20DBC7BA004DFB4D /* video.html in Resources */ = {isa = PBXBuildFile; fileRef = FFC41BDD20DBC7BA004DFB4D /* video.html */; };
46+
FFC6772223D07E3E00B76815 /* bigLists.html in Resources */ = {isa = PBXBuildFile; fileRef = FFC6772123D07E3E00B76815 /* bigLists.html */; };
4647
FFFA53D023C4A64200829A43 /* MediaInserter.swift in Sources */ = {isa = PBXBuildFile; fileRef = FFFA53CF23C4A64200829A43 /* MediaInserter.swift */; };
4748
FFFA53D523C4AD0B00829A43 /* TextViewAttachmentDelegateProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FFFA53D423C4AD0B00829A43 /* TextViewAttachmentDelegateProvider.swift */; };
4849
FFFA53D723C4C43700829A43 /* UIImage+SaveTo.swift in Sources */ = {isa = PBXBuildFile; fileRef = FFFA53D623C4C43700829A43 /* UIImage+SaveTo.swift */; };
@@ -163,6 +164,7 @@
163164
FF629DC8223BC418004C4106 /* videoShortcodes.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = videoShortcodes.html; sourceTree = "<group>"; };
164165
FF9AF5471DB0E4E200C42ED3 /* AttachmentDetailsViewController.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = AttachmentDetailsViewController.storyboard; sourceTree = "<group>"; };
165166
FFC41BDD20DBC7BA004DFB4D /* video.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = video.html; sourceTree = "<group>"; };
167+
FFC6772123D07E3E00B76815 /* bigLists.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = bigLists.html; sourceTree = "<group>"; };
166168
FFFA53CF23C4A64200829A43 /* MediaInserter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MediaInserter.swift; sourceTree = "<group>"; };
167169
FFFA53D423C4AD0B00829A43 /* TextViewAttachmentDelegateProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextViewAttachmentDelegateProvider.swift; sourceTree = "<group>"; };
168170
FFFA53D623C4C43700829A43 /* UIImage+SaveTo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIImage+SaveTo.swift"; sourceTree = "<group>"; };
@@ -211,6 +213,7 @@
211213
FFC41BDD20DBC7BA004DFB4D /* video.html */,
212214
FF629DC8223BC418004C4106 /* videoShortcodes.html */,
213215
FF5CDACC239E78B200CF235B /* failedMedia.html */,
216+
FFC6772123D07E3E00B76815 /* bigLists.html */,
214217
);
215218
path = SampleContent;
216219
sourceTree = "<group>";
@@ -457,6 +460,7 @@
457460
59280F2A1D47CAF40083FB59 /* content.html in Resources */,
458461
FF5CDACD239E78B200CF235B /* failedMedia.html in Resources */,
459462
B5FB212A1FEC38470067D597 /* captions.html in Resources */,
463+
FFC6772223D07E3E00B76815 /* bigLists.html in Resources */,
460464
FF1FD05C20932EDE00186384 /* gutenberg.html in Resources */,
461465
59280F2B1D47CAF40083FB59 /* SampleText.rtf in Resources */,
462466
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,

Example/Example/EditorDemoController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class EditorDemoController: UIViewController {
173173
view.addSubview(titleTextView)
174174
view.addSubview(titlePlaceholderLabel)
175175
view.addSubview(separatorView)
176-
Aztec.Metrics.listTextIndentation = 24
176+
177177
editorView.richTextView.textContainer.lineFragmentPadding = 0
178178
// color setup
179179
if #available(iOS 13.0, *) {
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<h2>One digit list</h2>
2+
<ol start=0>
3+
<li>First</li>
4+
<li>Second</li>
5+
<li>Third</li>
6+
<li>Fourth</li>
7+
</ol>
8+
<h2>Two digits list</h2>
9+
<ol start=9>
10+
<li>First</li>
11+
<li>Second</li>
12+
<li>Third</li>
13+
<li>Fourth
14+
<ol>
15+
<li>First</li>
16+
<li>Second</li>
17+
<li>Third</li>
18+
<li>Fourth
19+
</ol>
20+
</li>
21+
</ol>
22+
<h2>Three digits list</h2>
23+
<ol start=99>
24+
<li>First</li>
25+
<li>Second</li>
26+
<li>Third</li>
27+
<li>Fourth</li>
28+
</ol>
29+
<h2>Four digits list</h2>
30+
<ol start=999>
31+
<li>First</li>
32+
<li>Second</li>
33+
<li>Third</li>
34+
<li>Fourth
35+
<ol start=999>
36+
<li>First</li>
37+
<li>Second</li>
38+
<li>Third</li>
39+
<li>Fourth
40+
</ol>
41+
</li>
42+
</ol>
43+
44+
<h2>Five digits list</h2>
45+
<ol start=9999>
46+
<li>First</li>
47+
<li>Second</li>
48+
<li>Third</li>
49+
<li>Fourth
50+
<ol start=9999>
51+
<li>First</li>
52+
<li>Second</li>
53+
<li>Third</li>
54+
<li>Fourth
55+
</ol>
56+
</li>
57+
</ol>

0 commit comments

Comments
 (0)