module RailsConnector module MarkerHelper def edit_marker(obj, attr, options = {}, &block) if Configuration.editor_interface_enabled? default_value = options.delete(:default_value) if block_given? content = block.call(obj, attr) content = default_value || raw(" ") if content.blank? end tag_type = options.delete(:tag) || :span content_tag( tag_type, content.to_s, options ) else block_given? ? block.call(obj, attr) : nil end end def marker_menu(left=0, top=0, &block) end def marker_menu_target(tag_name, options = {}, &block) content_tag( tag_name, capture(&block), options ) end def include_edit_marker_support end def render_marker_code end private end end