Commit 10a4d4ec by Tom Giannattasio

tiny mce styling

parent b3807220
...@@ -96,7 +96,6 @@ class CMS.Views.UnitEdit extends Backbone.View ...@@ -96,7 +96,6 @@ class CMS.Views.UnitEdit extends Backbone.View
initProblemEditors(@$editor, $preview) initProblemEditors(@$editor, $preview)
when 'html' when 'html'
@$editor = $($('#html-editor').html()) @$editor = $($('#html-editor').html())
$preview = $('<div class="html-preview">')
initHTMLEditor(@$editor, $preview) initHTMLEditor(@$editor, $preview)
when 'discussion' when 'discussion'
@$editor = $($('#discussion-editor').html()) @$editor = $($('#discussion-editor').html())
...@@ -110,7 +109,8 @@ class CMS.Views.UnitEdit extends Backbone.View ...@@ -110,7 +109,8 @@ class CMS.Views.UnitEdit extends Backbone.View
$componentActions = $($('#component-actions').html()) $componentActions = $($('#component-actions').html())
@$componentItem.append(@$editor) @$componentItem.append(@$editor)
@$componentItem.append($preview) if $preview
@$componentItem.append($preview)
@$componentItem.append($componentActions) @$componentItem.append($componentActions)
@$componentItem.hide() @$componentItem.hide()
......
...@@ -60,11 +60,7 @@ function initHTMLEditor($editor, $prev) { ...@@ -60,11 +60,7 @@ function initHTMLEditor($editor, $prev) {
// Example content CSS (should be your site CSS) // Example content CSS (should be your site CSS)
content_css : "/static/css/html-editor.css", content_css : "/static/css/html-editor.css",
width: '100%', width: '100%',
height: '400px', height: '400px'
setup : function(ed) {
ed.onChange.add(onHTMLEditorUpdate);
ed.onKeyUp.add(onHTMLEditorUpdate);
}
}); });
} }
......
...@@ -63,16 +63,18 @@ ...@@ -63,16 +63,18 @@
/* ListBox */ /* ListBox */
.studioSkin .mceListBox { .studioSkin .mceListBox {
background: #fff; background: -webkit-linear-gradient(top, #dbe5ef, #cfdce9);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 1px rgba(0, 0, 0, 0.2);
border-radius: 2px; border-radius: 2px;
padding: 3px; padding: 3px;
margin-right: 4px; margin-right: 4px;
} }
.studioSkin .mceListBox:hover {
background: -webkit-linear-gradient(top, #e6eff8, #d9e8f6);
}
.studioSkin .mceListBox, .studioSkin .mceListBox a {display:block} .studioSkin .mceListBox, .studioSkin .mceListBox a {display:block}
.studioSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; font-size:11px; height:20px; line-height:20px; overflow:hidden} .studioSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; font-size:11px; height:20px; line-height:20px; overflow:hidden}
.studioSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/studio-icons.png) -741px 0; margin-right:2px;} .studioSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/studio-icons.png) -741px 0; margin-right:2px;}
.studioSkin table.mceListBoxEnabled:hover .mceText, .studioSkin .mceListBoxHover .mceText, .studioSkin .mceListBoxSelected .mceText {background:#FFF}
.studioSkin table.mceListBoxEnabled:hover .mceOpen, .studioSkin .mceListBoxHover .mceOpen, .studioSkin .mceListBoxSelected .mceOpen {background-color: rgba(255, 255, 255, .5);}
.studioSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;} .studioSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;}
.studioSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} .studioSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden}
.studioSkin .mceOldBoxModel .mceListBox .mceText {height:22px} .studioSkin .mceOldBoxModel .mceListBox .mceText {height:22px}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment