Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
a5b939c1
Commit
a5b939c1
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-2977: reactivate the media plugin file browser
parent
d3b322a5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/richText/RichTextElementComponent.java
+3
-1
3 additions, 1 deletion
...ible/impl/elements/richText/RichTextElementComponent.java
with
3 additions
and
1 deletion
src/main/java/org/olat/core/gui/components/form/flexible/impl/elements/richText/RichTextElementComponent.java
+
3
−
1
View file @
a5b939c1
...
...
@@ -53,6 +53,7 @@ class RichTextElementComponent extends FormBaseComponentImpl {
private
static
final
String
CMD_IMAGEBROWSER
=
"image"
;
private
static
final
String
CMD_FLASHPLAYERBROWSER
=
"flashplayer"
;
private
static
final
String
CMD_FILEBROWSER
=
"file"
;
private
static
final
String
CMD_MEDIABROWSER
=
"media"
;
private
static
final
ComponentRenderer
RENDERER
=
new
RichTextElementRenderer
();
private
final
RichTextElementImpl
element
;
...
...
@@ -118,7 +119,8 @@ class RichTextElementComponent extends FormBaseComponentImpl {
// element we make an exception since we have the media and link chooser
// events that must be dispatched by this code.
String
moduleUri
=
ureq
.
getModuleURI
();
if
(
CMD_FILEBROWSER
.
equals
(
moduleUri
)
||
CMD_IMAGEBROWSER
.
equals
(
moduleUri
)
||
CMD_FLASHPLAYERBROWSER
.
equals
(
moduleUri
))
{
if
(
CMD_FILEBROWSER
.
equals
(
moduleUri
)
||
CMD_IMAGEBROWSER
.
equals
(
moduleUri
)
||
CMD_FLASHPLAYERBROWSER
.
equals
(
moduleUri
)
||
CMD_MEDIABROWSER
.
equals
(
moduleUri
))
{
// Get currently edited relative file path
String
fileName
=
getRichTextElementImpl
().
getEditorConfiguration
().
getLinkBrowserRelativeFilePath
();
createFileSelectorPopupWindow
(
ureq
,
moduleUri
,
fileName
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment