November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Have you added and configured an editor.css, that problem have happend when I dont have one defined.
Check
uiEditorCssPaths="pathtoyoureditor.css"
in under applicationsettings in episerverconfig
/Daniel
Daniel. Thanks. I have done that, and it lookes good in the "built-in" editor (for a regular xhtml-property) so i most be something on how I create this one.
Maby there is a EPiServer widget I can use instead of creating it myself
We had a similar problem where we had lots of @import in the beginning of the editor css file and the imports where added before the style options (with the EditMenuName attributes).
Could you give us some example on how the css file looks like?
We use two, the editor.css looks like this:
h2
{
EditMenuName: Rubrik 2;
}
h3
{
EditMenuName: Rubrik 3;
}
p.preamble
{
EditMenuName: Ingress;
}
table.delkurser {
EditMenuName: Delkurser;
}
/* Copied from gangnam-styles.css (to show ol ul correctly) */
.mceContentBody ul,
.mceContentBody ol {
margin: 10px 0 15px 10px;
padding-left: 16px;
line-height: 18px; }
.mceContentBody ul li + li,
.mceContentBody ol li + li {
margin-top: 9px; }
.mceContentBody ul {
list-style-type: disc; }
.mceContentBody ol {
list-style: decimal; }
/* Show user selected text */
.mceContentBody *::selection {
background: #00f; /* Safari */
}
.mceContentBody *::-moz-selection {
background: #39f; /* Firefox */
color: #fff;
}
Hmm, I think I might know now Will test
The way to solve this is to implement TinyMCE the same way EPiServer does it, see more here:
http://world.episerver.com/Blogs/Henrik-Fransas/Dates/2014/11/how-to-use-tinymce-in-a-custom-property-the-episerver-wayclean-version/
We have a custom property (widget) where we display a tinyMCE editor and in that editor the dropdown for styles has many more options than the built in editor and with ugly titles, for exampel epi_dc_preview, epi_pc_content, epi_dc, epi_dc_h. We are propably missing a setting when we create the editor but I can't find out how to see what is wrong.
The code we use to create the editor is like this:
Anyone know how to fix this?