# todo: # context for the toolbar buttons and groups needs to change so we can do the following: # how to handle context for buttons? if the cursor is within a bold area (**bo|ld**), or selecting it -- it would be # nice if we could activate the bold button for instance. class @Mercury.Regions.Markupable extends Mercury.Region @supported: document.getElementById @supportedText: "IE 7+, Chrome 10+, Firefox 4+, Safari 5+, Opera 8+" type = 'markupable' constructor: (@element, @window, @options = {}) -> @type = 'markupable' super @converter = new Showdown.converter() build: -> width = '100%' height = @element.height() value = @element.html().replace(/^\s+|\s+$/g, '').replace('>', '>') @element.removeClass(Mercury.config.regions.className) @textarea = jQuery('