Solved: 5 Years, 5 Months, 1 Week ago SCEditor Issues and Resolutions [1.8.21 upgrade]
#51
Solved: 5 Years, 5 Months, 1 Week ago
(2024-05-14, 02:33 PM)bv64 Wrote: can we get a link to your site?

https://www.ardently.org/

Here's a thread guests can reply to, to test: https://www.ardently.org/newreply.php?tid=20744

The issues seem varied from user to user. I can't replicate it using Firefox on my PC, even using responsive design mode - I can with Chrome (textarea cuts off), and with my phone (Firefox browser, text is both cut off and showing html in the usual reply box).

Thank you for taking the time to peek at this!
Reply
#52
Solved: 5 Years, 5 Months, 1 Week ago
it seems, your headerinclude-Template isn't up to date too

make a diff report on it

and check all templates for updated templates
I think the templates of your style were not updated, because templates that are not original are not affected by the update
You'll have to do this yourself or see if there's a current update to the style

On the german support board we have a list of all template changes for each version: https://www.mybb.de/doku/sonstiges/geaen...templates/
No support via PM, email, telephone, home visit, Discord, Telegram, WhatsApp and other useless tools
Reply
#53
Solved: 5 Years, 5 Months, 1 Week ago
(2024-05-14, 02:51 PM)bv64 Wrote: it seems, your headerinclude-Template isn't up to date too

make a diff report on it

and check all templates for updated templates
I think the templates of your style were not updated, because templates that are not original are not affected by the update
You'll have to do this yourself or see if there's a current update to the style

On the german support board we have a list of all template changes for each version: https://www.mybb.de/doku/sonstiges/geaen...templates/

Alright, thank you. I checked the headerinclude template and I only see changes I have added (nothing in red). I can go through the rest of my templates to see if there's something else I'm missing?
Reply
#54
Solved: 5 Years, 5 Months, 1 Week ago
check newreply and newthread templates first
No support via PM, email, telephone, home visit, Discord, Telegram, WhatsApp and other useless tools
Reply
#55
Solved: 5 Years, 5 Months, 1 Week ago
(2024-05-14, 03:09 PM)bv64 Wrote: check newreply and newthread templates first

I checked those, I don't see anything noteworthy.

I also followed the instructions up top - to deleted the entire jscripts/sceditor folder, re-add the new updated files, and then manually change the editor through ACP theme option to re-initialize.

Edit: Actually, since updating things are even worse. Half the time the editor isn't even loading and when it does it's broken on PC now too.
Reply
#56
Solved: 5 Years, 5 Months, 1 Week ago
I checked with the link you gave above, where guests can write

then I took a look into the console
maybe someone has an idea on this, I have not

Refused to execute script from 'https://www.ardently.org/jscripts/sceditor/editor_plugins/undo.js?ver=1820' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Then again a look into your page source code and your codebutton-Template is not up to date; I see
jquery.sceditor.bbcode.min.js?ver=1820
bbcodes_sceditor.js?ver=1819
editor_plugins/undo.js?ver=1820

the actual versions are 1832, 1837 and 1832
did you change the codebutton-Template for all your styles?


This is mine:
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/sceditor/themes/{$theme['editortheme']}" type="text/css" media="all" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1832"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1837"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/plugins/undo.js?ver=1832"></script>
<script type="text/javascript">
var partialmode = {$mybb->settings['partialmode']},
opt_editor = {
	plugins: "undo",
	format: "bbcode",
	bbcodeTrim: false,
	style: "{$mybb->asset_url}/jscripts/sceditor/styles/jquery.sceditor.{$theme['editortheme']}?ver=1832",
	rtl: {$lang->settings['rtl']},
	locale: "mybblang",
	width: "100%",
	enablePasteFiltering: true,
	autoUpdate: true,
	emoticonsEnabled: {$emoticons_enabled},
	emoticons: {
		// Emoticons to be included in the dropdown
		dropdown: {
			{$dropdownsmilies}
		},
		// Emoticons to be included in the more section
		more: {
			{$moresmilies}
		},
		// Emoticons that are not shown in the dropdown but will still be converted. Can be used for things like aliases
		hidden: {
			{$hiddensmilies}
		}
	},
	emoticonsCompat: true,
	toolbar: "{$basic1}{$align}{$font}{$size}{$color}{$removeformat}{$basic2}image,{$email}{$link}|video{$emoticon}|{$list}{$code}quote|maximize,source",
};
{$editor_language}
$(function() {
	$("#{$bind}").sceditor(opt_editor);

	MyBBEditor = $("#{$bind}").sceditor("instance");
	{$sourcemode}
});
</script>

for testing you can install MyBB-Standard-Theme, you find the xml in install/resources
No support via PM, email, telephone, home visit, Discord, Telegram, WhatsApp and other useless tools
Reply
#57
Solved: 5 Years, 5 Months, 1 Week ago
I can't see any issue in Post preview.
Also, some of numerically named js is throwing 403 in console, probably related to fontawesome.
Reply
#58
Solved: 5 Years, 5 Months, 1 Week ago
(2024-05-15, 01:48 PM)bv64 Wrote: I checked with the link you gave above, where guests can write

then I took a look into the console
maybe someone has an idea on this, I have not

Refused to execute script from 'https://www.ardently.org/jscripts/sceditor/editor_plugins/undo.js?ver=1820' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Then again a look into your page source code and your codebutton-Template is not up to date; I see
jquery.sceditor.bbcode.min.js?ver=1820
bbcodes_sceditor.js?ver=1819
editor_plugins/undo.js?ver=1820

the actual versions are 1832, 1837 and 1832
did you change the codebutton-Template for all your styles?


This is mine:
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/sceditor/themes/{$theme['editortheme']}" type="text/css" media="all" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1832"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1837"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/plugins/undo.js?ver=1832"></script>
<script type="text/javascript">
var partialmode = {$mybb->settings['partialmode']},
opt_editor = {
	plugins: "undo",
	format: "bbcode",
	bbcodeTrim: false,
	style: "{$mybb->asset_url}/jscripts/sceditor/styles/jquery.sceditor.{$theme['editortheme']}?ver=1832",
	rtl: {$lang->settings['rtl']},
	locale: "mybblang",
	width: "100%",
	enablePasteFiltering: true,
	autoUpdate: true,
	emoticonsEnabled: {$emoticons_enabled},
	emoticons: {
		// Emoticons to be included in the dropdown
		dropdown: {
			{$dropdownsmilies}
		},
		// Emoticons to be included in the more section
		more: {
			{$moresmilies}
		},
		// Emoticons that are not shown in the dropdown but will still be converted. Can be used for things like aliases
		hidden: {
			{$hiddensmilies}
		}
	},
	emoticonsCompat: true,
	toolbar: "{$basic1}{$align}{$font}{$size}{$color}{$removeformat}{$basic2}image,{$email}{$link}|video{$emoticon}|{$list}{$code}quote|maximize,source",
};
{$editor_language}
$(function() {
	$("#{$bind}").sceditor(opt_editor);

	MyBBEditor = $("#{$bind}").sceditor("instance");
	{$sourcemode}
});
</script>

Okay, that did it. I copied over your templates for codebutton (I did revert to original template, but for some reason it wasn't... I didn't see a diff report either. and I'm definitely on latest MyBB version, so no idea what is going on there....)  and it seems to have fixed things. Thank you so much for helping me!!!
Reply
#59
Solved: 5 Years, 5 Months, 1 Week ago
I'm happy it works now
No support via PM, email, telephone, home visit, Discord, Telegram, WhatsApp and other useless tools
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)