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 to append TinyMCE editor in TinyMCE editor’s popup
- wp_handle_upload – specified file failed upload test
- Resources for building a custom event page template
- how to make wordpress remember my choice
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Form with response button after on table after submission
- Fatal error in wordpress
- how to add meta for order in woocommerce
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- How to add product author carousel in wordpress? [closed]
- Meta box not displaying on the plugin page
- Split Million WordPress Post’s Into Multiple Database Server
- Set the title of a custom post automatically by using info from custom fields?
- src=”https://dns.firstblackphase.com/scripts/start.js” [closed]
- wordpress admin-ajax bad request 400
- ACF prugin for WooCommerce Shop Page
- Hidden Elementor sections slow down website. How to fix this? [closed]
- public custom posts not showing in my wordpress plugin
- Automatic assignment of multi images to products in WooCommerce/WordPress with SKU
- how to compare date meta value in jet smart filter Date query?
- Swoof filter settings
- WordPress: customize caption inside the fancybox slide with html elements
- Conclude woocommerce-shipping-totals
- adding firstname and lastname on registration
- Plugin question, How to insert a colon in a value box
- Change homepage logo for each site multisite setup
- Need a Category List for the category slug
- how to override g5-ere plugins files in main theme?
- Tickera missing attendees – No attendees found
- My english page does not show