# 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.Simple extends Mercury.Region @supported: document.getElementById @supportedText: "IE 7+, Chrome 10+, Firefox 4+, Safari 5+, Opera 8+" type = 'simple' constructor: (@element, @window, @options = {}) -> @type = 'simple' super build: -> if @element.css('display') == 'block' width = '100%' height = @element.height() else width = @element.width() height = @element.height() # 'auto' value = @element.text() @element.removeClass(Mercury.config.regions.className) @textarea = jQuery('