• This occurs:

    – In WP 5.0.1.
    – In the Classic Editor block (but not in the standalone Classic Editor).
    – When using the link editor in Options mode (cog icon).

    All other situations work as far as I know: standalone Classic Editor, both for the Text and Visual tab, simplified Link editor et cetera.

    How to repeat:

    1. Edit a post in blocks mode.
    2. Add a Classic Editor block.
    3. Type some text.
    4. Select the text.
    5. Click the Insert/Edit Link icon.
    6. In the resulting dialog, click the Link Options icon.
    7. Add a URL to the URL field.
    8. Click the Add Link button.

    Expected behaviour: the selected text is now a hyperlink.

    Actual behaviour: the selected text is ordinary text, although when inspected in the editor source, the selected text has been moved to its own line (Firefox Quantum/Win v. 64, “Inspect Element”).

    I have only tested this in Firefox.

    I don’t know if it is possible to add a post in Blocks mode with Classic Editor installed and activated, so I haven’t tested that situation.

    I have disabled and removed as many plugins as possible (this is my development server, the only active plugins are ones I am developing myself). I know of one instance where someone else had the exact same problem and it is unlikely they are using my plugins (on account of me having released only one of them so far).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    This is a knows Classic Block problem (quite complex), will be fixed in the next WP version. The workaround for now is to add the link first, then edit it again with the Advanced Link modal. Still may fail sometimes, but the chances are small.

    Thread Starter hatesspam

    (@hatesspam)

    Thanks for your reply. I was aware of the work-around and should have mentioned it.

    If it is a known problem, does this mean this report is a duplicate? If so, what is the main ticket?

    By the way, I was looking at the code for the Classic Editor plugin and noticed it was quite sparse. Am I right in assuming that most of the code needed for the plugin resides in WordPress core? If so, wouldn’t it be wise to move that code to the plugin, considering the classic editor is no longer used by core?

    (I realise I am probably staring at a Pandora’s box here.)

    Plugin Author Andrew Ozz

    (@azaozz)

    There are couple of Gutenberg issues (as it is being developed there). Core trac tickets will be made when there is a good fix I guess ??

    wouldn’t it be wise to move that code to the plugin, considering the classic editor is no longer used by core

    Perhaps, one day if/when core decides to remove it. That won’t happen at least until 2022 ??

    • This reply was modified 5 years, 11 months ago by Andrew Ozz.

    Hello,
    I have installed version 1.4 on all my sites with WP 5.1, but it does not seem to work.
    Reading changelog v 1.2:

    • Fixed switching editors from the Add New (post) screen before a draft post is saved.
    • Fixed typo that was appending the edit URL to the classic-editor query var.
    • Changed detecting of WordPress 5.0 to not use version check. Fixes a bug when testing 5.1-alpha.
    • Changed the default value of the option to allow users to switch editors to false.
    • Added disabling of the Gutenberg Plugin and lowered the required WordPress version to 4.9+
    • Added classic_editor_network_default_settings filter

    Is the bolded string the fix?

    • This reply was modified 5 years, 8 months ago by mikiamomik.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Advanced links editor fails to add links’ is closed to new replies.