Better display of images in rich texts in the content centre.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3888 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2016-02-24 08:16:02 +00:00
parent 2db552b6a3
commit 1597b2c568
3 changed files with 68 additions and 2 deletions

View File

@ -42,7 +42,8 @@ xinha_config.formatblock =
"Normal" : "p"
};
xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
//xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
xinha_config.pageStyleSheets=[_editor_url + "editor.css"];
xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);
Xinha.startEditors(xinha_editors);
};

View File

@ -0,0 +1,32 @@
div.image {
border: 1px solid #999;
margin-bottom: 0.5em;
}
div.image span.caption {
display: block;
}
div.image.left {
float: left;
margin-right: 1em;
}
div.image.right {
float: right;
margin-left: 1em;
}
.wysiwg div.image.center {
text-align: center;
}
.wysiwg div.image.center span.caption {
margin-left: auto;
margin-right: auto;
text-align: left;
}

View File

@ -1806,4 +1806,37 @@ span#quickLinksCascade {
.wysiwyg ul {
list-style: disc inside;
}
}
.wysiwyg div.image {
border: 1px solid #999;
margin-bottom: 0.5em;
}
.wysiwyg div.image span.caption {
display: block;
}
.wysiwyg div.image.left {
float: left;
margin-right: 1em;
}
.wysiwyg div.image.right {
float: right;
margin-left: 1em;
}
.wysiwg div.image.center {
text-align: center;
}
.wysiwg div.image.center span.caption {
margin-left: auto;
margin-right: auto;
text-align: left;
}