diff options
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java | 5 | ||||
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java index 115864c9..f237e8bc 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImageDetailsWindow.java @@ -279,6 +279,7 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe } }); + // change between html and Wysiwyg btnWysiwyg.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { @@ -309,7 +310,9 @@ public class ImageDetailsWindow extends ImageDetailsWindowLayout implements UiFe } } }); - + + // insertion of <br> in needed because textpane is not able to + // to insert <br> when enter is pressed. txtDescription.addKeyListener(new KeyListener() { @Override public void keyPressed(KeyEvent e) { diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java index 33d5f164..b0f9e5fc 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/LectureDetailsWindow.java @@ -316,7 +316,7 @@ public class LectureDetailsWindow extends LectureDetailsWindowLayout implements } }); - + // change button for html to Wysiwyg btnWysiwyg.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { |