Code format does not work for some text.

Open
#1,328 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the issue in the Empty demo on an iPhone or iOS simulator, following the listed steps, then trace the code-format handling used by the note editor. Done means code formatting applies to all typed text after a line break and the source code view reflects the complete formatting.

Written by the indexing model from the issue text.

Description

[Type] Bug

Describe the bug
When we apply code format in note it does not work for some text.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Empty demo
  2. Type any words.
  3. Hit return key.
  4. Apply code format and start typing any random words.
  5. Now click on source code button and you will see that code format does not apply for all text.

Expected behavior
Code Format should apply for all text.

Screenshots
Screenshot 2021-03-23 at 11 04 07 AM
Screenshot 2021-03-23 at 11 04 05 AM

Smartphone (please complete the following information):

  • Device: iPhone 11 Pro
  • OS: 14.3
Dominant language
Swift
Stars
669
Forks
153
Avg merge
11h 27m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

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.

More from wordpress-mobile/AztecEditor-iOS

All issues in wordpress-mobile/AztecEditor-iOS

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.