pnp / pnp/sp-dev-fx-controls-react

Issue with entering new line in RichText on classic pages

Open
#538 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:bug v1
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 1.17.0 ]

Expected / Desired Behavior / Question

If we add RichText control on classic pages, in web part edit mode (not only page edit mode), it should allow user to enter new line in the Rich control.

Observed Behavior

User is not able to enter a new line if web part is in edit mode.

Steps to Reproduce
  1. Add a Richtext web part on classic page
  2. Click on 'Edit Web part' option
  3. Make sure classic property pane (where we can see configure option) is visible.
  4. Start typing text in the Rich text web part and hit Enter button to have a new line added to the Rich text.
  5. You won't be able to hit Enter or new line.

I have below code used:

descriptiveTest.zip

Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RichText control and the attached descriptiveTest.zip, then follow the listed reproduction steps on a classic page with the web part property pane open. Compare Enter-key behavior in web-part edit mode with page edit mode; done means Enter inserts a new line in the RichText control.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.