#41590 closed enhancement (fixed)
Original TinyMCE "link" plugin should be added in Core
Reported by: | turtlepod | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
WordPress uses custom "wplink" plugin, and it's great as content editor, because we can easily search for our content.
But a lot of plugin uses wp_editor() as front end form, and link is crucial feature, but there's no easy way to remove this search ability in wplink.
why remove the original tinymce "link" plugin?
I think it's best to just leave it there, and plugin can use this plugin instead of using wplink (better for general use editor, and not content editor)
Attachments (2)
Change History (9)
#1
@
7 years ago
Video of TinyMCE link plugin in action:
https://drive.google.com/file/d/0B9TdkMXV_Q7GS1R2aHNtUVUydlE/view?usp=sharing
Link:
https://www.tinymce.com/docs/plugins/link/
This files simply need to be added in "wp-includes\js\tinymce\plugins"
Use case:
#3
@
7 years ago
- Focuses ui accessibility javascript removed
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.9
- Version 4.8.1 deleted
The link plugin can be added quite easy from a (WordPress) plugin. After #35760 it probably makes sense to add it and not enable it as it can be used in some cases. Then plugins can just replace wplink
with link
when needed.
#4
follow-up:
↓ 5
@
7 years ago
Thank you @azaozz I upload a patch (not sure if i did it correctly, I hope I do)
#5
in reply to:
↑ 4
@
7 years ago
- Keywords needs-patch removed
Replying to turtlepod:
The patch looks good.
#6
@
7 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 41259:
#7
@
3 years ago
For the next person that comes across this...
I ran into the problem of wplink
not working when I mounted an editor instance into a Vue component. Fortunately, swapping in link
worked just fine.
Switching the plugins was all that was required:
add_filter( 'teeny_mce_plugin', function ( $plugins, $editor_id ) { $key = array_search( 'wplink', $plugins, true ); if ( false !== $key ) { unset( $plugins[ $key ] ); $plugins[] = 'link'; } return $plugins; }, 10, 2 );
TinyMCE Link Plugin