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.
Hello. There is a strange bug when I enable quick reply. The Rin Editor is being added below the default editor.

[attachment=43583]
1.0.8 Released

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

Enhancement: Unofficial support for base64 images.

How activate "Unofficial support for base64 images"

What does it do: In wysiwyg mode, images pasted from the clipboard will be converted to a base64 image.

Caution: This is an unofficial support for base64 images, so I'm not going to give any support for that, there is also no on/off configuration in ACP.
Ps. The step below allows only base 64 images for the Rin Editor side. For the MyBB side, you need google it to find out how to enable base64 images. Therefore, this is only for advanced users.

Steps:

1 - Open and edit root\jscripts\rin\editor\config.js

Find:
	config.image_previewText = ' ';

Add below:
	config.base64_unofficial_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).

How update:
- Unistall old version.
- Upload new version.
- Install new version.

(2020-12-15, 07:50 AM)r00tk1t Wrote: [ -> ]Hello. There is a strange bug when I enable quick reply. The Rin Editor is being added below the default editor.

Hi,

if you are using Quick Advanced Editor Plus plugin, please unistall this first.
(2020-12-15, 08:12 AM)martec Wrote: [ -> ]1.0.8 Released

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

Enhancement: Unofficial support for base64 images.

How activate "Unofficial support for base64 images"

What does it do: In wysiwyg mode, images pasted from the clipboard will be converted to a base64 image.

Caution: This is an unofficial support for base64 images, so I'm not going to give any support for that, there is also no on/off configuration in ACP.
Ps. The step below allows only base 64 images for the Rin Editor side. For the MyBB side, you need google it to find out how to enable base64 images. Therefore, this is only for advanced users.

Steps:

1 - Open and edit root\jscripts\rin\editor\config.js

Find:
	config.image_previewText = ' ';

Add below:
	config.base64_unofficial_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).

How update:
- Unistall old version.
- Upload new version.
- Install new version.

(2020-12-15, 07:50 AM)r00tk1t Wrote: [ -> ]Hello. There is a strange bug when I enable quick reply. The Rin Editor is being added below the default editor.

Hi,

if you are using Quick Advanced Editor Plus plugin, please unistall this first.
I forgot that Quick Advanced Editor is active, thank you!
@martec - does it mean that 1.0.8 with a simple modification will support adding images into the posts with ctrl+v shortcut? Or now it is a limitation MyBB itself?
(2020-12-15, 04:30 PM)Eldenroot Wrote: [ -> ]@martec - does it mean that 1.0.8 with a simple modification will support adding images into the posts with ctrl+v shortcut? Or now it is a limitation MyBB itself?

Unofficial editor-side support with modification to the configuration file ...
To make this work, you need to do core edit to the mybb file ... Of course, I don't recommend that you do this.
There seems to be an issue in edit post page, new thread, and new reply pages as the message I input into the test area is not sent in the form if I click the preview message button. It seems to be working fine in the private message send page though. Do you have any clue what might be causing this?
(2020-12-16, 08:41 AM)Omar G. Wrote: [ -> ]There seems to be an issue in edit post page, new thread, and new reply pages as the message I input into the test area is not sent in the form if I click the preview message button. It seems to be working fine in the private message send page though. Do you have any clue what might be causing this?

Hi,

can you give more detail?
are you saying about message inserted in editor correct? Or inserted using some script or anything like?
I tried to use here FF 83 and Edge 87 with source mode (usercp configuration) on / off and for me the preview message seems to work correctly for me.

1.0.9 Released

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

Omar G. Thanks for PR

How update:
- Unistall old version.
- Upload new version.
- Install new version.
@Omar G.

could you check if the preview message button for your theme has a type attribution with submit value?

the default theme is as below
<input type="submit" class="button" name="previewpost" value="Preview Post" tabindex="4">

ckeditor trigger submit event to run "editor.updateElement();" that update original textarea.

https://github.com/ckeditor/ckeditor4/bl...#L833-L865
Both the send and preview buttons have the type="submit" attribute. The Post Reply button seems to work just fine, but the preview button ignores any change to the textarea.
(2020-12-17, 11:31 PM)Omar G. Wrote: [ -> ]Both the send and preview buttons have the type="submit" attribute. The Post Reply button seems to work just fine, but the preview button ignores any change to the textarea.

could you try an attachment version of this post?

*Removed*

if patch work could you give me which operating system, browser and browser version you are using? because i can't reproduce for windows using blink and gecko based browser...  maybe you are using safari? if this happen with safari, i need too patch the phpbb version.