MyBB Community Forums

Full Version: Rin Editor 1.2.4 (Powerd by CKEditor)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2021-01-03, 12:32 PM)martec Wrote: [ -> ]
(2021-01-03, 11:56 AM)Loller Corleone Wrote: [ -> ]Started using this in our forum, works great! Is there any plans to include Giphy search in the future?

use this here https://community.mybb.com/thread-230566...pid1359845
Thank you!
With latest version I cannot see custom icons (buttons - spoiler etc) in Quick edit mode... full reply, quick reply and new thread work fine. Is that only me?
1.1.6 Released

Change log:
https://community.mybb.com/mods.php?acti...og&pid=657

Important: If you used table plugin before this version, you must update following mycode: table, td and th. The new mycode here: https://community.mybb.com/thread-189422...pid1359682

How update:
1.0.5 or above:

1 - Replace the files with new version
Ps. No changes made in config.js since 1.0.5 (https://github.com/martec/Rin-Editor/blo.../config.js). You can keep your customized version of this file as long as the base version is greater than 1.0.5

2 - Open and edit:
Home » Template Sets » Global Templates » Edit Template: rinbutquick

Find:
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/rin/editor/rineditor.js?ver=x.x.x"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/rin/editor/ckeditor.js?ver=x.x.x"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/rin/editor/adapters/jquery.js?ver=x.x.x"></script>

Replace x.x.x with new version number.

1.0.5 or below:

- Unistall old version.
- Upload new version.
- Install new version.

(2021-01-04, 08:46 PM)Eldenroot Wrote: [ -> ]With latest version I cannot see custom icons (buttons - spoiler etc) in Quick edit mode... full reply, quick reply and new thread work fine. Is that only me?

for me ok.
tested using FF, Edge and Chrome Dev 89.0.4356.6 64bits on windows 10.

[Image: b3dWMtz.png]

check that there is no error message on the browser console. If so, please report here.
Thanks martec for update.
@eldenroot...it show everywhere. Might be something wrong.

@Martec...after overwrite, you mention .....Replace x.x.x with new version number. ...what is x.x.x number?

How to add fonts?
I try methods mention here in many threads but not work.
I need to add fonts in dropdown menu.
Thanks.
(2021-01-05, 07:46 AM)Dr_The_One Wrote: [ -> ]@Martec...after overwrite, you mention .....Replace x.x.x with new version number. ...what is x.x.x number?

version of relase...
if you updated to 1.16... so replace x.x.x with 1.1.6

(2021-01-05, 07:46 AM)Dr_The_One Wrote: [ -> ]How to add fonts?
I try methods mention here in many threads but not work.
I need to add fonts  in dropdown menu.
Thanks.

you need edit root/jscripts/rin/editor/config.js

and add...

config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +
	'Comic Sans MS/Comic Sans MS, cursive;' +
	'Courier New/Courier New, Courier, monospace;' +
	'Georgia/Georgia, serif;' +
	'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
	'Tahoma/Tahoma, Geneva, sans-serif;' +
	'Times New Roman/Times New Roman, Times, serif;' +
	'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
	'Verdana/Verdana, Geneva, sans-serif';

the code above is default...
more detail here: https://ckeditor.com/docs/ckeditor4/late...font_names
after edit clear your browser's cache, if you're using cloudflare, you also need to clear your cloudflare cache.
Hi..
I do as folloing as you advice but added nexussans font not shown.
/**
 * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For complete reference see:
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config

	if ((CKEDITOR.env.mobile || CKEDITOR.env.iOS) && parseInt(rinmobsms)) {
		rinstartupmode = 'source';
	}

	// The toolbar groups arrangement, optimized for a single toolbar row.
	config.toolbarGroups = [
		{ name: 'basicstyles' },
		{ name: 'align' },
		{ name: 'styles' },
		{ name: 'colors', groups: [ 'colors', 'cleanup' ] },
		{ name: 'insert' },
		{ name: 'links' },
		{ name: 'list' },
		{ name: 'blocks', groups: [ 'blocks', 'clipboard' ] },
		{ name: 'extra', groups: [ 'extra', 'extradesc' ] },
		{ name: 'undo' },
		{ name: 'document',	groups: [ 'tools', 'mode' ] }
	];
	config.extraPlugins = 'table';
	config.language = rinlanguage;
	config.removePlugins = rinautosave;

	// The default plugins included in the basic setup define some buttons that
	// are not needed in a basic editor. They are removed here.
	config.removeButtons = 'Cut,Copy,Paste,Anchor,BGColor,indent,'+rinrmvbut+'';

	// Dialog windows are also simplified.
	config.removeDialogTabs = 'link:advanced';

	config.contentsCss = content_url;
	config.title = false;
	config.image_prefillDimensions = parseInt(rin_img_resize) ? true : false;
	config.height = rinheight;
	config.fontSize_sizes = 'xx-small;x-small;small;medium;large;x-large;xx-large';
	config.smiley_images = dropdownsmiliesurl.concat(dropdownsmiliesurlmore);
	config.smiley_descriptions = dropdownsmiliesname.concat(dropdownsmiliesnamemore);
	config.smiley_name = dropdownsmiliesdes.concat(dropdownsmiliesdesmore);
	config.smiley_path = smileydirectory;
	config.smiley_sc = rinsmileysc;
	config.startupMode = rinstartupmode;
	config.imgurClientId = rinimgur;
	config.disableNativeSpellChecker = false;
	config.skin = rinskin;
	config.image_previewText = ' ';

config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +
	'Comic Sans MS/Comic Sans MS, cursive;' +
	'Courier New/Courier New, Courier, monospace;' +
	'Georgia/Georgia, serif;' +
	'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
	'Tahoma/Tahoma, Geneva, sans-serif;' +
	'Times New Roman/Times New Roman, Times, serif;' +
	'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
	'Verdana/Verdana, Geneva, sans-serif'; +
	'NexusSans Regular/NexusSans Regular, sans-serif;' 

	config.autosave = {
		saveDetectionSelectors : 'input[name*="submit"],input[name*="savedraft"],input[id*="quick_reply_submit"],input[name*="previewpost"]',
		messageType : rinautosavemsg
	};
};
(2021-01-05, 09:26 AM)Dr_The_One Wrote: [ -> ]Hi..
I do as folloing as you advice but added nexussans font not shown.
/**
 * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
 // Define changes to default configuration here.
 // For complete reference see:
 // http://docs.ckeditor.com/#!/api/CKEDITOR.config

 if ((CKEDITOR.env.mobile || CKEDITOR.env.iOS) && parseInt(rinmobsms)) {
 rinstartupmode = 'source';
 }

 // The toolbar groups arrangement, optimized for a single toolbar row.
 config.toolbarGroups = [
 { name: 'basicstyles' },
 { name: 'align' },
 { name: 'styles' },
 { name: 'colors', groups: [ 'colors', 'cleanup' ] },
 { name: 'insert' },
 { name: 'links' },
 { name: 'list' },
 { name: 'blocks', groups: [ 'blocks', 'clipboard' ] },
 { name: 'extra', groups: [ 'extra', 'extradesc' ] },
 { name: 'undo' },
 { name: 'document', groups: [ 'tools', 'mode' ] }
 ];
 config.extraPlugins = 'table';
 config.language = rinlanguage;
 config.removePlugins = rinautosave;

 // The default plugins included in the basic setup define some buttons that
 // are not needed in a basic editor. They are removed here.
 config.removeButtons = 'Cut,Copy,Paste,Anchor,BGColor,indent,'+rinrmvbut+'';

 // Dialog windows are also simplified.
 config.removeDialogTabs = 'link:advanced';

 config.contentsCss = content_url;
 config.title = false;
 config.image_prefillDimensions = parseInt(rin_img_resize) ? true : false;
 config.height = rinheight;
 config.fontSize_sizes = 'xx-small;x-small;small;medium;large;x-large;xx-large';
 config.smiley_images = dropdownsmiliesurl.concat(dropdownsmiliesurlmore);
 config.smiley_descriptions = dropdownsmiliesname.concat(dropdownsmiliesnamemore);
 config.smiley_name = dropdownsmiliesdes.concat(dropdownsmiliesdesmore);
 config.smiley_path = smileydirectory;
 config.smiley_sc = rinsmileysc;
 config.startupMode = rinstartupmode;
 config.imgurClientId = rinimgur;
 config.disableNativeSpellChecker = false;
 config.skin = rinskin;
 config.image_previewText = ' ';

config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +
 'Comic Sans MS/Comic Sans MS, cursive;' +
 'Courier New/Courier New, Courier, monospace;' +
 'Georgia/Georgia, serif;' +
 'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
 'Tahoma/Tahoma, Geneva, sans-serif;' +
 'Times New Roman/Times New Roman, Times, serif;' +
 'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
 'Verdana/Verdana, Geneva, sans-serif'; +
 'NexusSans Regular/NexusSans Regular, sans-serif;' 

 config.autosave = {
 saveDetectionSelectors : 'input[name*="submit"],input[name*="savedraft"],input[id*="quick_reply_submit"],input[name*="previewpost"]',
 messageType : rinautosavemsg
 };
};

replace with code below

	config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +
	'Comic Sans MS/Comic Sans MS, cursive;' +
	'Courier New/Courier New, Courier, monospace;' +
	'Georgia/Georgia, serif;' +
	'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
	'Tahoma/Tahoma, Geneva, sans-serif;' +
	'Times New Roman/Times New Roman, Times, serif;' +
	'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
	'Verdana/Verdana, Geneva, sans-serif;' +
	'NexusSans Regular/NexusSans Regular, sans-serif';

[Image: XaVqqpF.png]
Thanks...Why other added font not displayed? Is there any format or condition for fonts?
(2021-01-05, 12:15 PM)Dr_The_One Wrote: [ -> ]Thanks...Why other added font not displayed? Is there any format or condition for fonts?

maybe you are making the same mistakes ...
check the differences between the code you provided and what I passed on to you... (check here: https://www.diffchecker.com/ecniKLJ3)
Yes, Thanks. Same mistake of '............
+1

Suppose, my added font not installed in other users PC then which font will be applied?
Is it possible that it can pick up another font?
e.g 'NexusSans Regular/NexusSans Regular, sans-serif';

In 1.1.6...
The table is not centralized and also width is not shown as per set. I sett 500 as width but it fills the whole width.
https://prnt.sc/wgreqm
https://prnt.sc/wgrf7t