[wp-trac] [WordPress Trac] #42830: Automatic List coding error

WordPress Trac noreply at wordpress.org
Fri Dec 8 10:09:50 UTC 2017


#42830: Automatic List coding error
--------------------------+------------------------------
 Reporter:  Wordaspect    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  4.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by swissspidy:

Old description:

> With TinyMCE Advanced Version 4.6.7 occurs an error in coding while
> switching between visual and text editor
>
> Step 1) writing in visual editor and assigning listing to boh lines:
>
> * topic 1
> * topic 2
>
> Step 2)  results in corrct coding in text editor
>
>     <ul>
>         <li>topic 1</li>
>         <li>topic 2</li>
>     </ul>
>
> Step 3) insrting a break and a space in the visual editor after “topic 1”
>
> * topic 1
>
> * topic 2
>
> Step 4) and switching to the text editor gives also a correct code, even
> so the “<br> ” is deleted:
>
>     <ul>
>         <li>topic 1</li>
>         <li>topic 2</li>
>         </ul>
>
> Step 5) but switching afterwards back to the visual code results in a
> weard coding and the text editor has following to show:
>
>     <ul>
>         <li style="list-style-type: none">
>     <ul>
>         <li>topic 1</li>
>     </ul>
>     </li>
>     </ul>
>     <ul>
>         <li>topic 2</li>
>     </ul>
>
> These works always like this with the mentioned steps above.

New description:

 With TinyMCE Advanced Version 4.6.7 occurs an error in coding while
 switching between visual and text editor

 Step 1) writing in visual editor and assigning listing to boh lines:

 {{{
 * topic 1
 * topic 2
 }}}


 Step 2)  results in corrct coding in text editor

 {{{
     <ul>
         <li>topic 1</li>
         <li>topic 2</li>
     </ul>
 }}}
 Step 3) insrting a break and a space in the visual editor after “topic 1”

 {{{
 * topic 1

 * topic 2
 }}}

 Step 4) and switching to the text editor gives also a correct code, even
 so the “<br> ” is deleted:

 {{{
     <ul>
         <li>topic 1</li>
         <li>topic 2</li>
     </ul>
 }}}

 Step 5) but switching afterwards back to the visual code results in a
 weard coding and the text editor has following to show:

 {{{
     <ul>
         <li style="list-style-type: none">
     <ul>
         <li>topic 1</li>
     </ul>
     </li>
     </ul>
     <ul>
         <li>topic 2</li>
     </ul>
 }}}

 These works always like this with the mentioned steps above.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42830#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list