1.1.2 Released
Change log:
https://community.mybb.com/mods.php?acti...og&pid=657
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.
Tips: How unofficially enable background color for text
Requirement: Rin Editor 1.1.2 or above.
Caution: This is unofficial modification. I will not support issues related with this.
1 - Open and edit root/jscripts/rin/editor/config.js
Find:
config.removeButtons = 'Cut,Copy,Paste,Anchor,BGColor,indent,'+rinrmvbut+'';
replace:
config.removeButtons = 'Cut,Copy,Paste,Anchor,indent,'+rinrmvbut+'';
Find:
config.image_previewText = ' ';
Add below:
config.background_color_support = true;
2 - Clear your browser's cache, if you're using cloudflare, you also need to clear your cloudflare cache (
https://support.cloudflare.com/hc/en-us/...Cloudflare).
3 - Add "background" mycode.
background color
\[background=([a-zA-Z]*|\#?[\da-fA-F]{3}|\#?[\da-fA-F]{6})](.*?)\[/background\]
<span style="background-color: $1;">$2</span>
it's all
(2020-12-28, 10:20 AM)Eldenroot Wrote: [ -> ]I would like to suggest - is possible to add any notification or loading gif that the image is uploading to the imgur via ctrl+v? Because now you have to wait, image has opacity until is uploaded and some users (including me, I was) might be confused, because you cannot use other features in editor, it seems like it is broken but it is not.
This is the default behavior of the upload image plugin.
https://ckeditor.com/docs/ckeditor4/late...ted-images
You can force "uploading message" making editing below:
open root\jscripts\rin\editor\plugins\imgur_drag\plugin.js
Find:
editor.on( 'fileUploadRequest', function( evt ) {
add below:
var notification = new CKEDITOR.plugins.notification( evt.editor, { message: RinEditor['Uploading'], type: 'success' } );
notification.show();
(2020-12-28, 10:20 AM)Eldenroot Wrote: [ -> ]I would like to see more user friendly integration for tables and drag and drop support for easier update proces,
I don't see any problem with the update. You not need clean up, only replace files. After all, replace config.js with your backup or remove from package this file to avoid replace. The table, drag and drop support will continue working after update without redoing the tips process.
(2020-12-28, 10:20 AM)Eldenroot Wrote: [ -> ]Also is possible in unofficial way support background color for text? Thank you!
added support in 1.1.2. Check "Tips: How unofficially enable background color for text"