Closed satrun77 closed 8 years ago
Hey thanks for your work on this, really appreciate it. Been wanting to add placeholders for a long time. I've just added a couple of changes to how it works, documented the feature in the readme and published a new release.
Issue #9
With this change the Shortcodable class have the option to implement the method
getShortcodePlaceHolder
. This method must output an image that will be used instead of the shortcode text. This method is optional, if it does not exists the functionality fallback to plain text.The properties of the shortcode are stored in the title attribute of the image displayed in TinyMCE. So they are visible to user on hover.
Double click the placeholder image will fire the edit event same as highlighting the shortcode text.
Example: