Skip to content

Commit 1167ab2

Browse files
Update enhanced.md
1 parent e005458 commit 1167ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/development/fieldtypes/enhanced.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,14 @@ Possible return values are:
241241

242242
## File Manager support
243243

244-
References to files in content (ex. when a file is selected by the Filepicker) can be in two different forms, depending on if the file manager is running in Compatibility Mode or not. If it's not running in compatibility mode, the file references in content will contain a file ID (e.g. `{file:123:url}` where 123 is the file id). The file can also be referenced in content with a directory ID and file name (e.g. `{filedir_2}filename.jpg`) when in [Compatibility Mode](control-panel/file-manager/file-manager.md#compatibility-mode).
244+
When a file is referenced inside content, it can be in two different forms depending on if the file manager is running in compatibility mode or not. An example of this is when a file is chosen inside an RTE field via the filepicker. If the file manager is not running in [compatibility mode](control-panel/file-manager/file-manager.md#compatibility-mode), the file references in content will contain a file ID (e.g. `{file:123:url}` where 123 is the file ID). The file can also be referenced in content with a directory ID and file name (e.g. `{filedir_2}filename.jpg`) when in compatibility mode.
245245

246-
To parse both cases correctly, please use `ee()->file_field->parse_string` function.
246+
To parse both cases correctly, please use the `ee()->file_field->parse_string()` function.
247247

248248
ee()->load->library('file_field');
249249
$data = ee()->file_field->parse_string($data);
250250

251-
If you fieldtype is using custom JavaScript for treating the files, be sure to make the code aware of [`EE.fileManagerCompatibilityMode`](development/control-panel-js/globals.md#filemanagercompatibilitymode) variable.
251+
If the fieldtype is using custom JavaScript for manipulating the files, be sure to make the code aware of the [`EE.fileManagerCompatibilityMode`](development/control-panel-js/globals.md#filemanagercompatibilitymode) variable.
252252

253253
## Implementing Filepicker for Rich Text Editor
254254

0 commit comments

Comments
 (0)