You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/marketplace/platform-supported-content/widgets/richtext/_index.md
+13-18Lines changed: 13 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -142,24 +142,19 @@ This advance configuration allows you to add extra font list to the font family
142
142
143
143
#### Prerequisites
144
144
145
-
Prior to adding a new font, the font files and font family have to already be included in your project.
145
+
Before use, please ensure you meet the following prerequisites:
146
146
147
-
***Adding font files**
147
+
* Prior to adding a new font, the font files and font family have to already be included in your project. To add font files into the project, you can put the font files inside your styles/web directory.
148
+
* Define font family in styling. You will need to define the new font by adding the font face custom styling.
148
149
149
-
To add font files into the project, you can put the font files inside your styles/web directory.
150
-
151
-
***Define font family in styling**
152
-
153
-
You will need to define the new font by adding the font face custom styling.
154
-
155
-
```css
156
-
@font-face {
157
-
font-family: 'Your-font-family-name';
158
-
src: url('YourFontFile.ttf') format('truetype');
159
-
font-weight: 100;
160
-
font-style: normal;
161
-
}
162
-
```
150
+
```css
151
+
@font-face {
152
+
font-family: 'Your-font-family-name';
153
+
src: url('YourFontFile.ttf') format('truetype');
154
+
font-weight: 100;
155
+
font-style: normal;
156
+
}
157
+
```
163
158
164
159
#### Adding a Custom Font
165
160
@@ -184,7 +179,7 @@ The new font name will be display in the toolbar with data-value attribute as `d
184
179
}
185
180
```
186
181
187
-
### Image from entity
182
+
### Image From Entity
188
183
189
184
{{% alert color="info" %}}
190
185
This feature is available from Rich Text version 4.8.0 and above.
@@ -196,7 +191,7 @@ The default image upload and selection method of Rich Text is to use base64 stri
196
191
197
192
The default and recommended way of uploading and selecting images from entity in Rich Text widget is to use [File Uploader](/appstore/modules/file-uploader/) module.
198
193
199
-
##### Prerequisite
194
+
##### Prerequisites
200
195
201
196
Entity that being used for Rich Text data source value attribute have to use FileUploadContext entity generalization.
0 commit comments