tg icon indicating copy to clipboard operation
tg copied to clipboard

Markup support for properties of type RichText

Open 01es opened this issue 10 years ago • 0 comments

Pre-requsites

Issue #348 needs to be implemented first. However, basic research of the subject of developing a component for markdown editing and rendering can proceed independently.

Description

It would be great to support some markup language (e.g. markdown) as part a multiline text editor. However, such support is not trivial due to the need for separation of formatting from the context upon persisting an associated string property into a database. Such separation is required to facilitate search, which would be impeded by presence of formatting tags in the value of string properties.

Property type RichText should be the target type for this editor.

Implementation details

Investigate if StackEdit can be used. It is highly desirable to have a good WYSIWYG editor.

If not, investigate a possible use of https://github.com/markedjs/marked for implementing markdown rendering.

Special care should be taken for text sanitisation (e.g., https://github.com/cure53/DOMPurify).

Expected outcome

Support for wiki-like text with rich-text rendering as a property editor for properties of type RichText.

01es avatar May 22 '15 01:05 01es