Skip to content
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

Need load jquery.sceditor.default.min.css to style blockquote in sceditor #667

Closed
martec opened this issue May 31, 2014 · 12 comments
Closed
Labels
b:1.8 Branch: 1.8.x i:jquery Involving: jQuery s:resolved Status: Resolved. Solution implemented or scheduled t:bug Type: Bug. An issue causing error / flaw / malfunction
Milestone

Comments

@martec
Copy link
Contributor

martec commented May 31, 2014

need load jquery.sceditor.default.min.css to style blockquote etc...

http://i.imgur.com/bLSHIEk.png
i get image above in www.sceditor.com

you can check that minified/themes/default.min.css and minified/jquery.sceditor.default.min.css not are same file.

Quote tag without jquery.sceditor.default.min.css
http://i.imgur.com/JcFmTjl.png

Quote tag with jquery.sceditor.default.min.css
http://i.imgur.com/hZUOtKZ.png

@Sama34 Sama34 added the 1.8 label Jun 2, 2014
@martec martec changed the title Not load jquery.sceditor.default.min.css that need to style blockquote Need load jquery.sceditor.default.min.css to style blockquote in sceditor Jun 4, 2014
@DiogoParrinha
Copy link
Contributor

Please see:
https://github.com/mybb/mybb/blob/master/CONTRIBUTING.md

This is getting out of hand, we're getting bug reports every day and it's impossible to keep track of them because they have no milestone by default and no labels so we have to go through all issues without milestone, including Pull Requests to check each one.

@DiogoParrinha DiogoParrinha added this to the 1.8 Beta 2 milestone Jun 7, 2014
@DiogoParrinha DiogoParrinha self-assigned this Jun 27, 2014
@martec
Copy link
Contributor Author

martec commented Jun 28, 2014

@PirataNervo
I saw now that you assignee this... (thanks)
For me jquery.sceditor.mybb.css (default of plugin of sceditor for mybb 1.6) is better than jquery.sceditor.default.min.css (default of sceditor), because has better style #672.
But i think that more better if we made one new that combine with style of mybb 1.8 as image below:
http://i.imgur.com/gLITrSY.png

@DiogoParrinha
Copy link
Contributor

@martec alright I see the differences. I'm just confused about what's the real issue here? We're not loading something, are we loading two different things? Are we loading something twice?

@martec
Copy link
Contributor Author

martec commented Jun 28, 2014

@PirataNervo

We loading something twice {$theme['editortheme']}. (line 1 and line 10 of codebutton template). And not loading something.
Line 10 used to load style of contet of textarea (blockquote, blockcode etc... and not style of theme editor), correct file to load in line 10 is "{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.default.min.css".

in mybb 1.8 beta codebutton template

<link rel="stylesheet" href="jscripts/sceditor/editor_themes/{$theme['editortheme']}" type="text/css" media="all" />
<link rel="stylesheet" href="jscripts/sceditor/editor_themes/extrabuttons.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/{$lang->settings['htmllang']}.js"></script>
<script type="text/javascript">
$(function() {
    $("#{$bind}").sceditor({        
        plugins: "bbcode",
        style: "{$mybb->asset_url}/jscripts/sceditor/editor_themes/{$theme['editortheme']}", //(repeat same file of first line)

correct code

<link rel="stylesheet" href="jscripts/sceditor/editor_themes/{$theme['editortheme']}" type="text/css" media="all" />
<link rel="stylesheet" href="jscripts/sceditor/editor_themes/extrabuttons.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/{$lang->settings['htmllang']}.js"></script>
<script type="text/javascript">
$(function() {
    $("#{$bind}").sceditor({        
        plugins: "bbcode",
        style: "{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.default.min.css", //(here used to load style of quote, block quote)

@DiogoParrinha
Copy link
Contributor

Yeap I see what you mean, you're correct. Do you have a PR for this? We could definitely style it to match 1.8's blockquote but I don't have time right now, I have an extremely busy week and I'd like to have this fixed and then for Beta 3 we could improve it.

@martec
Copy link
Contributor Author

martec commented Jun 28, 2014

@PirataNervo
you can use #672
if don´t want use jquery.sceditor.mybb.css ...
i can made PR with jquery.sceditor.default.min.css in some minutes...

@DiogoParrinha
Copy link
Contributor

@martec i've merged your PR. Are you going to submit a PR to change the style to match 1.8 style? Like suggested here: #667 (comment)

@martec
Copy link
Contributor Author

martec commented Jun 28, 2014

@PirataNervo
yes i will...

@DiogoParrinha
Copy link
Contributor

Alright thanks.

@martec
Copy link
Contributor Author

martec commented Jun 28, 2014

@PirataNervo
done.

@DiogoParrinha
Copy link
Contributor

Merged, this is now finished. Thank you @martec

@martec
Copy link
Contributor Author

martec commented Jun 28, 2014

@PirataNervo
thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.8 Branch: 1.8.x i:jquery Involving: jQuery s:resolved Status: Resolved. Solution implemented or scheduled t:bug Type: Bug. An issue causing error / flaw / malfunction
Projects
None yet
Development

No branches or pull requests

3 participants