Skip to content

Add support for wbr in content editor

Himanshu Kapoor requested to merge 338380-wbr into master

What does this MR do?

Part of #338380 (closed)

This MR adds support for rendering word break opportunity tags (wbr) in content editor.

How to setup and validate locally (strongly suggested)

Rendering existing wbr tags

  1. Create a new wiki page.

  2. Enter a sentence that ends with a large word and add <wbr> tags in that large word.

    For example: Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz

  3. Switch to new editor

  4. Save

  5. Reload the page. You'll note that the <wbr> tags are preserved.

New wbr tags in content editor

  1. Create a new wiki page.
  2. Enter a sentence that ends with a large word and type <wbr> to add a word break opportunity in that word.
  3. You won't be able to see the wbr tags when you type, but a hyphen will appear when the word is about to split into two lines.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #338380 (closed)

Edited by Himanshu Kapoor

Merge request reports