|
1 | 1 | { |
2 | 2 | "spans": [ |
3 | 3 | { |
4 | | - "insert": "RichEditor", |
| 4 | + "insert": "RichEditorSwiftUI", |
5 | 5 | "attributes": { |
6 | | - "bold": true, |
7 | | - "header": 1 |
| 6 | + "color": "#FF9500", |
| 7 | + "size": 24, |
| 8 | + "font": "Academy Engraved LET" |
8 | 9 | } |
9 | 10 | }, |
10 | 11 | { |
11 | | - "insert": "\niOS ", |
12 | | - "attributes": {} |
| 12 | + "attributes": {}, |
| 13 | + "insert": "\n\nIt’s Support " |
13 | 14 | }, |
14 | 15 | { |
15 | | - "insert": "RichEditorSwiftUI ", |
| 16 | + "insert": "bold", |
16 | 17 | "attributes": { |
17 | | - "bold": true, |
18 | | - "italic": true |
| 18 | + "bold": true |
19 | 19 | } |
20 | 20 | }, |
21 | 21 | { |
22 | | - "insert": "Rich editor for ", |
23 | | - "attributes": {} |
| 22 | + "attributes": {}, |
| 23 | + "insert": ", " |
| 24 | + }, |
| 25 | + { |
| 26 | + "attributes": { |
| 27 | + "italic": true |
| 28 | + }, |
| 29 | + "insert": "italic" |
| 30 | + }, |
| 31 | + { |
| 32 | + "attributes": {}, |
| 33 | + "insert": ", " |
24 | 34 | }, |
25 | 35 | { |
26 | | - "insert": "SwiftUI.\n\n", |
27 | 36 | "attributes": { |
28 | | - "bold": true, |
29 | 37 | "underline": true |
30 | | - } |
| 38 | + }, |
| 39 | + "insert": "underline" |
31 | 40 | }, |
32 | 41 | { |
33 | | - "insert": "Features", |
| 42 | + "attributes": {}, |
| 43 | + "insert": " and " |
| 44 | + }, |
| 45 | + { |
| 46 | + "insert": "striketrhough", |
34 | 47 | "attributes": { |
35 | | - "bold": true, |
36 | | - "header": 3 |
| 48 | + "strike": true |
37 | 49 | } |
38 | 50 | }, |
39 | 51 | { |
40 | | - "insert": "\nThe editor offers the following ", |
41 | | - "attributes": {} |
| 52 | + "attributes": {}, |
| 53 | + "insert": " formats.\n\nWe have different headings\n" |
42 | 54 | }, |
43 | 55 | { |
44 | | - "insert": "options:\n", |
| 56 | + "insert": "Heading 1\n", |
45 | 57 | "attributes": { |
46 | | - "bold": true, |
47 | | - "italic": true, |
48 | | - "underline": true |
| 58 | + "header": 1 |
49 | 59 | } |
50 | 60 | }, |
51 | 61 | { |
52 | | - "insert": "\n", |
53 | | - "attributes": {} |
| 62 | + "insert": "Heading 2", |
| 63 | + "attributes": { |
| 64 | + "header": 2 |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "attributes": {}, |
| 69 | + "insert": "\n" |
54 | 70 | }, |
55 | 71 | { |
56 | | - "insert": "Bold\n", |
| 72 | + "insert": "Heading 3\n", |
57 | 73 | "attributes": { |
58 | | - "bold": true |
| 74 | + "header": 3 |
59 | 75 | } |
60 | 76 | }, |
61 | 77 | { |
62 | | - "insert": "Italic\n", |
| 78 | + "insert": "Heading 4\n", |
63 | 79 | "attributes": { |
64 | | - "italic": true |
| 80 | + "header": 4 |
65 | 81 | } |
66 | 82 | }, |
67 | 83 | { |
68 | | - "insert": "Underline\n", |
| 84 | + "insert": "Heading 5\n", |
69 | 85 | "attributes": { |
70 | | - "underline": true |
| 86 | + "header": 5 |
| 87 | + } |
| 88 | + }, |
| 89 | + { |
| 90 | + "insert": "Heading 6\n", |
| 91 | + "attributes": { |
| 92 | + "header": 6 |
71 | 93 | } |
72 | 94 | }, |
73 | 95 | { |
74 | | - "insert": "Different ", |
| 96 | + "insert": "\nHere we have ", |
75 | 97 | "attributes": {} |
76 | 98 | }, |
77 | 99 | { |
78 | | - "insert": "Headings\n\n", |
79 | 100 | "attributes": { |
80 | | - "bold": true, |
81 | | - "italic": true, |
82 | | - "underline": true |
| 101 | + "size": 24 |
| 102 | + }, |
| 103 | + "insert": "large" |
| 104 | + }, |
| 105 | + { |
| 106 | + "attributes": {}, |
| 107 | + "insert": " and " |
| 108 | + }, |
| 109 | + { |
| 110 | + "attributes": { |
| 111 | + "size": 10 |
| 112 | + }, |
| 113 | + "insert": "small" |
| 114 | + }, |
| 115 | + { |
| 116 | + "attributes": {}, |
| 117 | + "insert": " text and " |
| 118 | + }, |
| 119 | + { |
| 120 | + "insert": "custom fonts", |
| 121 | + "attributes": { |
| 122 | + "font": "ChalkboardSE-Light", |
| 123 | + "color": "#007AFF" |
83 | 124 | } |
84 | 125 | }, |
85 | 126 | { |
86 | | - "insert": "\n", |
| 127 | + "insert": " as well.\n\nYou can align text differently\nHere is the left align\n", |
87 | 128 | "attributes": {} |
88 | 129 | }, |
89 | 130 | { |
90 | | - "insert": "Credits", |
91 | 131 | "attributes": { |
92 | | - "bold": true, |
93 | | - "header": 3 |
| 132 | + "align": "center" |
| 133 | + }, |
| 134 | + "insert": "This is center align\n" |
| 135 | + }, |
| 136 | + { |
| 137 | + "insert": "This is right align\n", |
| 138 | + "attributes": { |
| 139 | + "align": "right" |
94 | 140 | } |
95 | 141 | }, |
96 | 142 | { |
97 | | - "insert": "\n\n", |
| 143 | + "attributes": {}, |
| 144 | + "insert": "\nDifferent font " |
| 145 | + }, |
| 146 | + { |
| 147 | + "insert": "color", |
| 148 | + "attributes": { |
| 149 | + "color": "#34C759" |
| 150 | + } |
| 151 | + }, |
| 152 | + { |
| 153 | + "insert": " and ", |
98 | 154 | "attributes": {} |
99 | 155 | }, |
100 | 156 | { |
101 | | - "insert": "RichEditor ", |
| 157 | + "insert": "background", |
102 | 158 | "attributes": { |
103 | | - "bold": true |
| 159 | + "background": "#32ADE6" |
104 | 160 | } |
105 | 161 | }, |
106 | 162 | { |
107 | | - "insert": "for SwiftUI is developed and maintained by the ", |
| 163 | + "insert": "\n\nThank You! Team ", |
108 | 164 | "attributes": {} |
109 | 165 | }, |
110 | 166 | { |
111 | | - "insert": "Canopas Team.", |
112 | 167 | "attributes": { |
113 | 168 | "bold": true, |
114 | | - "italic": true, |
115 | | - "underline": true |
116 | | - } |
| 169 | + "color": "#F67C8E" |
| 170 | + }, |
| 171 | + "insert": "Canopas" |
117 | 172 | }, |
118 | 173 | { |
119 | | - "insert": "\n\nThank You! 😊\n\n", |
| 174 | + "insert": " 😊", |
120 | 175 | "attributes": {} |
121 | 176 | } |
122 | 177 | ] |
|
0 commit comments