Skip to content

Commit

Permalink
Fix class issue in RTE
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 28, 2010
1 parent a282d23 commit a6402fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/edit_controller.rb
Expand Up @@ -260,7 +260,7 @@ def page
get_container
edit_page_info(@container_type,@container_id,params[:path][2],true)

@design_styles = SiteTemplate.css_design_styles(@output.css_site_template_id,@revision.language).map { |elm| elm.to_s[1..-1] }
@design_styles = SiteTemplate.css_design_styles(@output.css_site_template_id,@revision.language)


generate_paragraph_types
Expand Down
2 changes: 1 addition & 1 deletion app/models/site_template.rb
Expand Up @@ -351,7 +351,7 @@ def structural_style_details(lang,override = true)
# the Design Styles
def self.css_design_styles(site_template_id,lang)
css = SiteTemplate.render_template_css(site_template_id,lang,false)
Util::CssParser.parse_names(css,['classes']).sort
Util::CssParser.parse_names(css,['classes']).sort.map { |elm| elm.to_s[1..-1] }
end

def self.css_styles(site_template_id,lang)
Expand Down

0 comments on commit a6402fb

Please sign in to comment.