Make WordPress Core

Opened 11 years ago

Closed 7 years ago

Last modified 7 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:
Priority: low Milestone:
Component: TinyMCE Version: 3.8
Severity: normal Keywords:
Cc: Focuses:

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
11 years ago

  • Component Editor → TinyMCE
  • Milestone Awaiting Review → 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
11 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
7 years ago

  • Milestone Future Release
  • Resolution → worksforme
  • Status new → 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 7 years ago by azaozz (previous) (diff)
Note: See TracTickets for help on using tickets.