Permalink
Browse files

cleditor for content

  • Loading branch information...
1 parent 9bcbb00 commit dfa6988c8ffa80ee286bb3a0744e2b8920f347be @pory committed Apr 15, 2012
View
@@ -30,7 +30,7 @@ def list options = {}
document_id = options[:object]['_id']
method = options[:object][item].blank? ? 'post' : 'put'
if authorized?
- "<img src='/images/icon_pencil.gif' class='edit-icon'><span id='text_item_#{item}' class='editable' data-key='#{item}' data-document_id='#{document_id}' data-method='#{method}'>#{value}</span>"
+ "<img src='/images/icon_pencil.gif' class='edit-icon'><div id='text_item_#{item}' class='editable' data-key='#{item}' data-document_id='#{document_id}' data-method='#{method}'>#{value}</div>"
else
options[:object][item] unless options[:object][item].blank?
end
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,24 @@
+.cleditorMain {border:1px solid #999; padding:0 1px 1px; background-color:white}
+.cleditorMain iframe {border:none; margin:0; padding:0}
+.cleditorMain textarea {border:none; margin:0; padding:0; overflow-y:scroll; font:10pt Arial,Verdana; resize:none; outline:none /* webkit grip focus */}
+.cleditorToolbar {background: url('images/toolbar.gif') repeat}
+.cleditorGroup {float:left; height:26px}
+.cleditorButton {float:left; width:24px; height:24px; margin:1px 0 1px 0; background: url('images/buttons.gif')}
+.cleditorDisabled {opacity:0.3; filter:alpha(opacity=30)}
+.cleditorDivider {float:left; width:1px; height:23px; margin:1px 0 1px 0; background:#CCC}
+.cleditorPopup {border:solid 1px #999; background-color:white; position:absolute; font:10pt Arial,Verdana; cursor:default; z-index:10000}
+.cleditorList div {padding:2px 4px 2px 4px}
+.cleditorList p,
+.cleditorList h1,
+.cleditorList h2,
+.cleditorList h3,
+.cleditorList h4,
+.cleditorList h5,
+.cleditorList h6,
+.cleditorList font {padding:0; margin:0; background-color:Transparent}
+.cleditorColor {width:150px; padding:1px 0 0 1px}
+.cleditorColor div {float:left; width:14px; height:14px; margin:0 1px 1px 0}
+.cleditorPrompt {background-color:#F6F7F9; padding:4px; font-size:8.5pt}
+.cleditorPrompt input,
+.cleditorPrompt textarea {font:8.5pt Arial,Verdana;}
+.cleditorMsg {background-color:#FDFCEE; width:150px; padding:4px; font-size:8.5pt}
Oops, something went wrong.

0 comments on commit dfa6988

Please sign in to comment.