Fix images in single and multi select problems in libraries. Found following issues and fixed them: * Images were not being rendered in any of the fields in these problems. * Base url was not being set which is used by tinymce to load images with relative path. * Answer fields were set to inline mode which does not initialize images or base paths * If same image twice is used twice in a problem, the logic of replacing `static/image.jpg` with `/static/image.jpg` would replace the first occurrence twice resulting in `//static/image.jpg`, breaking both the links. * On initialization of answer fields, the absolute static asset urls were being replaced by relative urls causing the editor being set as dirty without user changes.
30 lines
394 B
SCSS
30 lines
394 B
SCSS
.expandable-mce {
|
|
.error {
|
|
outline: 2px solid #CA3A2F;
|
|
}
|
|
|
|
.mce-content-body {
|
|
padding: 10px;
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 16px 40px;
|
|
}
|
|
}
|
|
|
|
*[contentEditable="false"] {
|
|
outline: 1px solid #D7D3D1;
|
|
}
|
|
|
|
*[contentEditable="true"] {
|
|
outline: 1px solid #707070;
|
|
|
|
&:focus, &:active {
|
|
outline: 2px solid #000000;
|
|
}
|
|
}
|
|
}
|