[wp-trac] [WordPress Trac] #26881: Multiple wp_editor() on one page and link button broken

WordPress Trac noreply at wordpress.org
Sun Dec 9 20:40:43 UTC 2018


#26881: Multiple wp_editor() on one page and link button broken
--------------------------+----------------------
 Reporter:  machinedean   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  3.8
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by chriscct7):

 * keywords:  reporter-feedback =>
 * status:  reopened => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Old description:

> Hopefully this is enough information. It doesn't appear that anyone else
> has reported this bug. I've also extensively Googled to see if there a
> fix but with no luck.
>
> We typically use multiple wp_editor() functions for custom post types as
> this provides an easier interface for our users.
>
> Unfortunately, it appears with the most recent version of WordPress (3.8)
> some of the functionality is now broken. This is reported for at least 2
> of our websites and we're holding off on updating Wordpress on our other
> websites until this is resolved.
>
> 1. Firstly, I highlight text that I want to make into a link
> 2. Pressing the 'link' button (in Text mode only) opens the dialogue as
> usual
> 3. After entering the URL, I press 'Add link' and nothing happens.
>
> If I close the dialogue box I get the following error in console:
>
> "TypeError: wpLink.textarea is undefined"
>
> If I click the 'link' button again the dialogue does not appear but the
> lightbox overlay covers the screen.
>
> I could be wrong but I think the issue is to do with the id 'wp-link-
> submit'. I believe this is the case since the functionality for the
> default editor works fine and the wp_editor()'s underneath do not.
>
> Please let me know if you need any further information.

New description:

 Hopefully this is enough information. It doesn't appear that anyone else
 has reported this bug. I've also extensively Googled to see if there a fix
 but with no luck.

 We typically use multiple wp_editor() functions for custom post types as
 this provides an easier interface for our users.

 Unfortunately, it appears with the most recent version of WordPress (3.8)
 some of the functionality is now broken. This is reported for at least 2
 of our websites and we're holding off on updating WordPress on our other
 websites until this is resolved.

 1. Firstly, I highlight text that I want to make into a link
 2. Pressing the 'link' button (in Text mode only) opens the dialogue as
 usual
 3. After entering the URL, I press 'Add link' and nothing happens.

 If I close the dialogue box I get the following error in console:

 "TypeError: wpLink.textarea is undefined"

 If I click the 'link' button again the dialogue does not appear but the
 lightbox overlay covers the screen.

 I could be wrong but I think the issue is to do with the id 'wp-link-
 submit'. I believe this is the case since the functionality for the
 default editor works fine and the wp_editor()'s underneath do not.

 Please let me know if you need any further information.

--

Comment:

 No longer possible to replicate as of WordPress 4.9. This was likely fixed
 when WordPress renovated the link editing experience a while ago.

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


More information about the wp-trac mailing list