Wordpress TinyMCE not converting simple 'www.sitename.com' to hyperlink, as in demos -
despite behavior of examples shown on tinymce's demo pages (http://www.tinymce.com/tryit/classic.php), unable tinymce on wordpress 4.0 site act in such way if type "www.sitename.com" editor , press space, it's automatically converted hyperlink http://www.sitename.com/.
to clear, doesn't convert link @ all...this isn't case of absolute vs. relative links. that's of talk seems when comes tinymce , link creation. ...would stage!
i can find no toggle or option or plugin name enable automatic link creation, , yet it's there in demos on tinymce's site.
can tell me how might feature , running, ideally not adding wordpress plugin?
err...that being said, i'm open suggestion if have one! :)
cheers!
even though found plugin, background might because think question:
wordpress uses tinymce, wordpress wysiwyg editor heavily extended , no longer resembles original tinymce editor see on tinymce website.
in order links automatically render in tinymce, 'autolink' plugin needs enabled. following native tinymce plugins used wordpress:
in addition these, wordpress employs following custom plugins fill out remainder of functionality see:
- wordpress
- wpautoresize
- wpeditimage
- wpgallery
- wplink
- wpdialogs
- wpview
it belief wordpress left out behavior design. know, autolink plugin converts valid urls comparable anchor tags once space or return keys pressed. however, wordpress allow explicitly convert urls or words anchor tags using own plugin 'wplink'.
it should noted wplink plugin closely resembles native anchor plugin, not same.
with ability both explicitly define links in both visual editor (via wplink plugin) , text (aka: html) editor, believe development team decided forgo on automatically linking content in favor of allowing authors explicitly provide links needed.
with of said:
wordpress provide convenient way of adding new tinymce plugins via 'mce_external_plugins' filter. if add autolink functionality without use of external plugin, may download latest tinymce package, upload autolink plugin (tinymce/js/tinymce/plugins/autolink) theme folder, , add following theme's functions.php:
add_filter('mce_external_plugins', 'mm_add_tinymce_plugins'); function mm_add_tinymce_plugins($plugins){ $plugins['autolink'] = get_stylesheet_directory_uri().'/path/to/tinymce/plugins/autolink/plugin.js'; return $plugins; }
Comments
Post a Comment