opencast-ilias / OpenCast

Opencast plugin for ILIAS LMS. The plugin shows a Opencast series as an ILIAS object. This version of the ILIAS plugin for Opencast is operated and developed collaboratively by a community. The University of Bern acts as coordinative maintainer.
GNU General Public License v3.0
13 stars 14 forks source link

All textboxes are missing options to formate inserted text #50

Open dagraf opened 2 years ago

dagraf commented 2 years ago

Describe the bug All textboxes are missing options to formate inserted text (i.e. "Work instruction" in Settings-Tab of a series, "Info Text" in sub-tab "Events" of the plugins configuration possibility

To Reproduce Steps to reproduce the behavior:

  1. Go to a series an open the tab 'Settings'
  2. See missing options to format the written text

Expected behavior Written text should be formatable (bold, italic, ..., hyperlink, source code).

Screenshots v3.6.1:

Bildschirmfoto 2022-06-20 um 20 20 10 Bildschirmfoto 2022-06-20 um 20 24 01

v4.0.1

Bildschirmfoto 2022-06-20 um 20 23 36 Bildschirmfoto 2022-06-20 um 20 23 47
okaufman commented 1 year ago

The old tinyMCE-Editor can no longer be used in the new ILIAS-Forms. The Editor will be deprecated in more and more places in ILIAS. Soon the tinyMCE-Editor wil be replaced by a markdown editor. But the markdown editor is not yet available.

We could parse the output for possible links and make them clickable. I am assuming that the editor is mostly used to insert links.

dagraf commented 1 year ago

Ok, let's implement "parsing the output for possible links and make them clickable" until the new markdown editor is implemented. @okaufman Could you please do this and give us an update when the markdown editor is working? Thx!

chfsx commented 1 year ago

The Markdown-Input has been implemented for ILIAS 9: https://github.com/ILIAS-eLearning/ILIAS/pull/5152

dagraf commented 1 year ago

The Markdown-Input has been implemented for ILIAS 9: ILIAS-eLearning/ILIAS#5152

@chfsx > Which means that this issue will be solved with ILIAS 9?

chfsx commented 1 year ago

@dagraf This does not directly solve the problem, we will then also include this form field (type) in the plugin so that it can be used. We also have to "migrate" the existing content in some way. So far, HTML was generated and saved with the old input, with the new input we will generate and save Markdown. Therefore, the existing content would have to be converted once from HTML to Markdown, which will not work in all cases. or we remove all HTML tags once.

dagraf commented 1 year ago

@chfsx Thx for the explanation. About migration we start to think when ILIAS 9 is around the corner. One question I still have: Does this new form field include visual UI options (meaning buttons) to format text? In my opinion, such options are crucial to make formatting as easy as possible (for most users).

chfsx commented 1 year ago

@dagraf yes there are several buttons which help for the most common actions:

image