The visual editor (TinyMCE) has its own API and since its a JavaScript Based editor you can get the selection using JavaScript very easily
tinyMCE.activeEditor.selection.getContent();
Related Posts:
- Disable text tab on WordPress text-editor
- How do I add multiple buttons to Tiny MCE in a single plugin?
- can’t use span or icon tags on when editing visual composer element
- Extending the “Add Media”-Dialog … how do I finally insert something to the Post?
- Embedding code snippets in posts with indentation
- How to add a shortcode button to the TinyMCE editor?
- How to load wp_editor via AJAX
- How to Add WYSIWYG Editor (tinyMCE) to plugin options page compatible with WordPress 3.0 and up?
- Syntax highlighting for post/page editor [closed]
- TinyMCE Advanced newline problem
- How to work with Syntax Highlighter Evolved?
- How to disable Gutenberg editor?
- Is there a plugin to show the code tag button on the visual editor?
- Drag-and-drop “Panels”-style visual layout editor?
- Creating button next to “add media” that allows you to choose a single post
- Issues creating a tinyMCE plugin that creates a custom link
- Adding rich text editor to my plugin
- How to Add TinyMCE’s plugin in wordpress?
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- How to add custom style to Gutenberg?
- How can I get the post content displayed in a text field that allows to edit posts?
- How to add custom JS to tinymce in wordpress
- how to load tinymce external plugin
- Set WordPress TinyMCE Editor To Readonly
- Uncode theme content block header ignoring saved changes/not updating?
- Color java code the way it is colored in eclipse [closed]
- Why is WPBakery Page Builder backend editor not clickable? [closed]
- How to edit content before post update
- How to replace wordpress default text editor (TinyMCE) with a custom one.
- accessing wp.media api from a tinymce plugin
- Visual Composer shortcode for child theme dir
- How to load wp_editor via AJAX
- jquery tinymce and bundled wp plugins
- How to add wp visual editor in a custom widget?
- Trouble adding tiny mce to textarea in custom plugin
- Using TinyMCE in plugin?
- TinyMCE Styles Dropdown not adding html tags other than span
- Getting Theme element into plugins page editor in wp admin
- Hook into existing tinyMCE button
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- syntax highlighting and
- Overriding post’s font-family
- Tools for styling code snippet in a web page
- How to add table class for tables of TinyMCE advanced wordpress plugin? [closed]
- Is there a good way to load tiny_mce_popup.js through editor.windowManager.open?
- Generate Own Custom CSS Button with icon
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Example for use tinymce in wordpress 3.5.1?
- Custom characters of tinymce editor are saved as question mark
- Displaying syntax highlighted code [closed]
- “After file loaded” action
- How to disable tinyMCE button added by a plugin?
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- How to apply to hide TinyMCE (wp_editor) on button click
- How to hide the cell properties and row properties in TinyMCE WordPress?
- How to use wp_editor and save its data in wp_posts table
- How to allow code like PHP, SQL, HTML to WPBakery Visual Composer?
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- Multi Language Code Snippet in WordPress
- How to get short description under heading – Visual Composer [closed]
- Sanitize AROUND shortcode
- TinyMCE how to add css when inputing a text
- how to enable tinymce custom buttons in meta box?
- Better code/text editing for posts and pages?
- Filter html of WordPress editor in visual mode only
- Using Iris Colorpicker on TinyMCE shortcodes page [duplicate]
- How can I replace the built in WordPress editor?
- Is there a visual editor specifically for page snippets/sections?
- Visual Composer Data Source?
- How can I attach images to a post from the media library?
- Does Quantity of files in a plugin affect performance?
- Why is my ajax call refreshing the page?
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to count number of records found in a database table?
- What is the way to ship read-me strings like plugin-strings for internationalization?
- See which user installed a plugin?
- Post category with counts been display like a menu
- DOMAIN_CURRENT_SITE constant being regularly overridden [closed]
- Plugin Repository commit doesn’t show up in activity
- How do I write an inventory list plugin that creates dynamic details pages?
- How to let user store a file in plugin directory but not have it get deleted on update?
- Finding the screen id of a page generated with add_menu_page
- Override a Plugin Function
- How to enable WPML in BuddyPress Multilingual Plugin in a single website? [closed]
- plugin for emails to prevent spam but also let mailto working?
- Xamp installed local wordpress not allowing to publish or install plugin
- FPDF for creating pdf diplomas
- Upload WordPress Plugin from ZIP Broken – Returns Symbols Squares & question marks
- is it possible to fetch data from a remote api while admin is writing a new post?
- How wordpress handle urls present in db for external wp-content directory
- wordpress plugin translation not working
- Multi-site error wordpress after migration
- Enqueued admin javascript for plugin settings page not executing
- Modify php code from plugin
- How to use scripts when header/footer are stripped out
- Apache rewrite rules and wordpress problem
- Why links are not linked if edited comment?
- Plugin to display text before a post
- Why does wordpress keep asking for ftp login info when I go to install a plugin [duplicate]
- Cart shortcode is not working in cart66 WordPress plugin