WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 2 years ago

Last modified 2 years ago

#33810 closed defect (bug) (worksforme)

Impossible to place cursor after a pre tag at the end of content

Reported by: johnbillion Owned by:
Milestone: Priority: low
Severity: normal Version: 3.8
Component: TinyMCE Keywords:
Focuses: Cc:

Description

Given the following content at the end of a post:

<pre>Foo</pre>

It's impossible to place the cursor after the <pre> tag when using the visual editor.

Tested back to 3.8.

Change History (3)

#1 @iseulde
6 years ago

  • Component changed from Editor to TinyMCE
  • Milestone changed from Awaiting Review to Future Release

You mean it is impossible to create an new paragraph? I cannot get a new paragraph with just enter, but I can with shift+enter. It should respect the end_container_on_empty_block setting though.

#2 @iseulde
6 years ago

Though end_container_on_empty_block looks at an empty paragraph inside the block. pre never has any other elements inside.

#3 @azaozz
2 years ago

  • Milestone Future Release deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Yes, Shift+Enter works here too. May not be very intuitive but don't see a good way to fix this. Enter should insert another line in the <pre>.

Last edited 2 years ago by azaozz (previous) (diff)
Note: See TracTickets for help on using tickets.