Skip to content

Commit 31fec22

Browse files
committed
Add a demo to check placeholder images.
1 parent d8ae109 commit 31fec22

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

Example/AztecExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
F1D3610B20929F0200B4E7A5 /* WordPressEditor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F1D3610420929E6D00B4E7A5 /* WordPressEditor.framework */; };
4040
FF149F4A20E3C49A0070FECB /* imagesOverlays.html in Resources */ = {isa = PBXBuildFile; fileRef = FF149F4920E3C49A0070FECB /* imagesOverlays.html */; };
4141
FF1FD05C20932EDE00186384 /* gutenberg.html in Resources */ = {isa = PBXBuildFile; fileRef = FF1FD05B20932EDE00186384 /* gutenberg.html */; };
42+
FF5CDACD239E78B200CF235B /* failedMedia.html in Resources */ = {isa = PBXBuildFile; fileRef = FF5CDACC239E78B200CF235B /* failedMedia.html */; };
4243
FF629DC9223BC418004C4106 /* videoShortcodes.html in Resources */ = {isa = PBXBuildFile; fileRef = FF629DC8223BC418004C4106 /* videoShortcodes.html */; };
4344
FF9AF5481DB0E4E200C42ED3 /* AttachmentDetailsViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FF9AF5471DB0E4E200C42ED3 /* AttachmentDetailsViewController.storyboard */; };
4445
FFC41BDE20DBC7BA004DFB4D /* video.html in Resources */ = {isa = PBXBuildFile; fileRef = FFC41BDD20DBC7BA004DFB4D /* video.html */; };
@@ -155,6 +156,7 @@
155156
F1D360FC20929E6D00B4E7A5 /* WordPressEditor.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = WordPressEditor.xcodeproj; path = ../WordPressEditor/WordPressEditor.xcodeproj; sourceTree = "<group>"; };
156157
FF149F4920E3C49A0070FECB /* imagesOverlays.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = imagesOverlays.html; sourceTree = "<group>"; };
157158
FF1FD05B20932EDE00186384 /* gutenberg.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = gutenberg.html; sourceTree = "<group>"; };
159+
FF5CDACC239E78B200CF235B /* failedMedia.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = failedMedia.html; sourceTree = "<group>"; };
158160
FF629DC8223BC418004C4106 /* videoShortcodes.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = videoShortcodes.html; sourceTree = "<group>"; };
159161
FF9AF5471DB0E4E200C42ED3 /* AttachmentDetailsViewController.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = AttachmentDetailsViewController.storyboard; sourceTree = "<group>"; };
160162
FFC41BDD20DBC7BA004DFB4D /* video.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = video.html; sourceTree = "<group>"; };
@@ -202,6 +204,7 @@
202204
FF1FD05B20932EDE00186384 /* gutenberg.html */,
203205
FFC41BDD20DBC7BA004DFB4D /* video.html */,
204206
FF629DC8223BC418004C4106 /* videoShortcodes.html */,
207+
FF5CDACC239E78B200CF235B /* failedMedia.html */,
205208
);
206209
path = SampleContent;
207210
sourceTree = "<group>";
@@ -443,6 +446,7 @@
443446
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
444447
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
445448
59280F2A1D47CAF40083FB59 /* content.html in Resources */,
449+
FF5CDACD239E78B200CF235B /* failedMedia.html in Resources */,
446450
B5FB212A1FEC38470067D597 /* captions.html in Resources */,
447451
FF1FD05C20932EDE00186384 /* gutenberg.html in Resources */,
448452
59280F2B1D47CAF40083FB59 /* SampleText.rtf in Resources */,

Example/Example/EditorDemoController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,7 @@ extension EditorDemoController {
10551055

10561056
}
10571057

1058+
// MARK: - TextViewAttachmentDelegate
10581059

10591060
extension EditorDemoController: TextViewAttachmentDelegate {
10601061

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<h3>Video</h3>
2+
<video src="https://nothere.mp4" poster="notthere.jpg" alt="Another video with bunnies"></video>
3+
4+
<h3>Image</h3>
5+
<img src="https://nothere.jpeg" alt="Coyote" class="alignleft"/>

Example/Example/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class ViewController: UITableViewController
1919
DemoRow(title: "Captions Demo", action: { self.showEditorDemo(filename: "captions") }),
2020
DemoRow(title: "Image Overlays", action: { self.showEditorDemo(filename: "imagesOverlays") }),
2121
DemoRow(title: "Video Demo", action: { self.showEditorDemo(filename: "video", wordPressMode: false) }),
22+
DemoRow(title: "Failed Media", action: { self.showEditorDemo(filename: "failedMedia") }),
2223
DemoRow(title: "Empty Demo", action: { self.showEditorDemo() })
2324
]
2425
),

0 commit comments

Comments
 (0)