Title: [Plugin: Shortcodes Pro] Data-mce-type=&quot;bookmark&quot; code suddenly showing on shortcode inser
Last modified: August 20, 2016

---

# [Plugin: Shortcodes Pro] Data-mce-type="bookmark" code suddenly showing on shortcode inser

 *  [k12onos](https://wordpress.org/support/users/k12onos/)
 * (@k12onos)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-pro-data-mce-typebookmark-code-suddenly-showing-on-shortcode-insert/)
 * Hi,
 * I created a simple shortcode to wrap around the selected text with a box. It’s
   working fine if I write the shortcode manually, which is
 * `[do action="tbw"]CONTENT[/do]`
 * But, the problem is with the shortcode button on the Rich text editor. When I
   click the assigned shortcode button to a selection of text consisting 2 paragraphs
   or more (i.e. contains a linebreak/ ), suddenly it gives this code around the[
   do action=”tbw”]. (I found out using inspect element tool on Google chrome)
 *     ```
       <span style="overflow:hidden;line-height:0px" data-mce-type="bookmark" data-mce-style="overflow:hidden;line-height:0px">﻿[do action="tbw"]</span>
       ```
   
 * This code is filtered out when switching to the HTML view or publishing the post.
   So it essentially delete the [do action=”tbw”] part of the shortcode, leaving
   many meaningless [/do] at the end of the selected texts.
 * I’m still trying to find out what causes this, disabling all plugin & switching
   to default theme does not solve the problem.
 * Any clues on what that data-mce-style/data-mce-type code might be?
 * [http://wordpress.org/extend/plugins/shortcodes-pro/](http://wordpress.org/extend/plugins/shortcodes-pro/)

The topic ‘[Plugin: Shortcodes Pro] Data-mce-type="bookmark" code suddenly showing
on shortcode inser’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcodes-pro_434343.svg)
 * [Shortcodes Pro](https://wordpress.org/plugins/shortcodes-pro/)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-pro/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [k12onos](https://wordpress.org/support/users/k12onos/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-shortcodes-pro-data-mce-typebookmark-code-suddenly-showing-on-shortcode-insert/)
 * Status: not resolved