New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.8][bug] $theme['editortheme'] is null #662
Comments
sorry @ ATofighi but this not fix. http://i.imgur.com/bLSHIEk.png you can check that minified/themes/default.min.css and minified/jquery.sceditor.default.min.css not are same file. And you can check too sceditor plugin to mybb made by samclarke that load two style different. |
@martec please see codebuttons template and source of new thread page <link rel="stylesheet" href="jscripts/sceditor/editor_themes/mybb.css" type="text/css" media="all" />
<script type="text/javascript" src="jscripts/sceditor/jquery.sceditor.bbcode.min.js"></script>
<script type="text/javascript" src="jscripts/bbcodes_sceditor.js"></script>
<script type="text/javascript" src="jscripts/sceditor/editor_languages/en.js"></script>
<script type="text/javascript">
$(function() {
$("#message").sceditor({
plugins: "bbcode",
style: "jscripts/sceditor/editor_themes/mybb.css",
rtl: 0,
locale: "en",
emoticons: {
// Emoticons to be included in the dropdown
dropdown: {
":s": "images/smilies/confused.png",
":-/": "images/smilies/undecided.png",
":)": "images/smilies/smile.png",
";)": "images/smilies/wink.png",
":D": "images/smilies/biggrin.png",
":P": "images/smilies/tongue.png",
":(": "images/smilies/sad.png",
":@": "images/smilies/angry.png",
":blush:": "images/smilies/blush.png",
},
// Emoticons to be included in the more section
more: {
":angel:": "images/smilies/angel.png",
":dodgy:": "images/smilies/dodgy.png",
":exclamation:": "images/smilies/exclamation.png",
":heart:": "images/smilies/heart.png",
":huh:": "images/smilies/huh.png",
":idea:": "images/smilies/lightbulb.png",
":sleepy:": "images/smilies/sleepy.png",
":cool:": "images/smilies/cool.png",
":rolleyes:": "images/smilies/rolleyes.png",
":shy:": "images/smilies/shy.png",
":at:": "images/smilies/at.png"
}
},
toolbar: "bold,italic,underline,strike|left,center,right,justify|font,size,color,removeformat|horizontalrule,image,email,link,unlink|video,emoticon|bulletlist,orderedlist|code,quote|maximize,source",
});
MyBBEditor = $("#message").sceditor("instance");
});
</script> it is mybb.css not jquery.sceditor.default.min.css :) |
@martec mybb.css use in link tag and style: , please see codebuttons template. |
@ATofighi link is used to style editor (mybb.css)... |
i will repeat here what i said in #667 Quote tag without jquery.sceditor.default.min.css Quote tag with jquery.sceditor.default.min.css link "style:" into script: http://i.imgur.com/bTyYjf8.png minified/jquery.sceditor.default.min.css (not same file above) (this used to style code, quote blocks) |
OK. ;) |
I think there is a bit of confusion here. The issue is simple: $theme is not defined (we're not globalizing it and I'm not sure if it's even defined in the ACP - I doubt) and we simply hardcode the theme as mybb.css - missing stylesheets or minified stylesheets should belong in another issue. |
Merged yo PR, closing this. |
Hi,
In admin/inc/class_page.php line 774 ( https://github.com/mybb/mybb/blob/feature/admin/inc/class_page.php#L774 )
$theme['editortheme'] is null, it must be mybb.css
Fixes in #663
The text was updated successfully, but these errors were encountered: