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-09-22, 02:12 PM)PARADOX987 Wrote: [ -> ]i just asked is there any way to turn this feature supportable for mobile phones that's , i remember what have i asked before , your answer was clear that it didn't work in mobile devices now i just wanted to know if there is any way 😒. So silly question isn't it !

Besides all of this i wanna say thank you for this amazing plugin .

Fast Quote is working in mobile phones, but only if you are not using the Rin Editor as quick editor. Fast quote ist not compatible with the quick quote. I also tried to get this working, but it's difficult because Rin Editor is using a iframe as textfield etc.

I also tried to get Quick Quote working on mobile phones, but what I got so far is not changing much.

<div class="rin-qc" id="qr_pid_{$post['pid']}" href="javascript:void(0);">{$lang->postbit_button_quote}</div>
<script type="text/javascript">
$(document).ready(function() {
    quick_quote({$post['pid']}, '{$post['username']}', {$post['dateline']});

    var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

    // Funktion für die Auswahl von Text
    $(document).on("touchend", function(event) {
        var target = $(event.target);
        if (!target.hasClass("post")) {
            target = target.parents(".post");
        }

        if (target && target.length) {
            var postID = target[0].id.split("_")[1];
            var selectedText = window.getSelection().toString().trim();
            if (selectedText) {
                // Text wurde ausgewählt, zeige den Button
                var button = $("#qr_pid_" + postID);
                var range = window.getSelection().getRangeAt(0);
                var rect = range.getBoundingClientRect();
                button.css({ top: window.scrollY + rect.top + rect.height + 6 + "px", left: getposition().left - button.outerWidth() + 10 + "px" });
                button.show();
            } else {
                // Kein Text ausgewählt, verstecke den Button
                $("#qr_pid_" + postID).hide();
            }
        }
    });

    // Funktion für das Touch-Ereignis des Buttons (nur auf mobilen Geräten)
    $(".rin-qc").on("click touchend", function(event) {
        if (isMobile) {
            var postID = $(this).attr("id").split("_")[1];
            var username = "{$post['username']}";
            var dateline = {$post['dateline']};
            quick_quote(postID, username, dateline);
            event.stopPropagation();
            event.preventDefault();
        }
    });
});
</script>

The problem here is, that the button is not showing directly after you marked the text. You have to scroll down or something first, to get the button shown up, but then the button is not working anymore. It is only working before the second touch on the screen, when it's invisible. And yes, then the text get's quotet on smartphones. So I am feeling like half way through, but I am sitting here for hours testing some stuff.

Maybe a normal button would be better, instead of the floating button beside the text, like in fast quote. But if I make the button not absolute and display block, it is the same result. As soon as it is visible, after the second touch on the screen, it is not working anymore. Only when I click where the button hast to be, but when it's still invisible.

Chat GPT recommended to use the internal menu for text on smartphones, where you can copy text and so on. Seems like it would be possible to list the quote function there, but I am making no progress there also.

Maybe I or somebody reading this will find a solution or would be interested to help to get a text marking quote function working on mobile phones. Would be happy to brainstorm some ideas.
Hello,
I received the error "The message is missing. Please enter a message." when I created a new thread, for the first time in 10 years. I use the latest versions of Rin and Mybb. Reading some threads on this forum I deactivated Rin Editor and things went back to normal.
Are there some custom mods in the editor or rin editor files to avoid such errors in future?
Thanks
Hi!
This message has been appearing as a warning on my forum:

Quote:Warning [2] Undefined array key "rineditor_img_resize" - Line: 26 - File: inc/plugins/rineditor.php(790) : eval()'d code PHP 8.0.30 (Linux)

Any idea how to fix it?
Hi Martec and thank for making these excellent plugins, i am very confused because i don't know if i should use this one or the  Quick Advanced Editor Plus.

What are the main difference between the 2 since the quick quote button is not working correctly in Quick Advanced Editor Plus probably because i use the Dark Emerald theme.

The button when you select text sometime don't show up even after refreshing the page and it never appear at the same place on the page upon selecting text and often it is only showing a portion of it like in the picture.

Any clue on how to make the button appear always at the same place like bottom right of the post where the text was selected?

I am not very rich but i am willing to pay to get a little help if someone can.

Regards Peter
(2025-02-21, 08:22 PM)peter_vps Wrote: [ -> ]Hi Martec and thank for making these excellent plugins, i am very confused because i don't know if i should use this one or the  Quick Advanced Editor Plus.

What are the main difference between the 2 since the quick quote button is not working correctly in Quick Advanced Editor Plus probably because i use the Dark Emerald theme.

The button when you select text sometime don't show up even after refreshing the page and it never appear at the same place on the page upon selecting text and often it is only showing a portion of it like in the picture.

Any clue on how to make the button appear always at the same place like bottom right of the post where the text was selected?

I am not very rich but i am willing to pay to get a little help if someone can.

Regards Peter

hi,
use this thread https://community.mybb.com/thread-160306.html

you can try old version 2.2.5, 2.2.3.

https://community.mybb.com/mods.php?acti...og&pid=217

(2024-08-08, 12:47 AM)Miyako02 Wrote: [ -> ]Hi!
This message has been appearing as a warning on my forum:

Quote:Warning [2] Undefined array key "rineditor_img_resize" - Line: 26 - File: inc/plugins/rineditor.php(790) : eval()'d code PHP 8.0.30 (Linux)

Any idea how to fix it?

apply by yourself the change below (this PR It was not created by me and it was not tested by me):

https://github.com/martec/Rin-Editor/pull/57/files
martec - any way to release a new update?
(2025-02-23, 01:51 PM)Eldenroot Wrote: [ -> ]martec - any way to release a new update?

I don't intend to release an update. Not to mention that ckeditor 4 has already reached EOL, so it doesn't make much sense.
This plugin worked very nice for me but I have installed  the new Curves UI theme (a 1.9 like preview) and my Rin Editor looks like this:
[attachment=47817]

All the other options for different editors in the theme options work ok, except Rin. 

Has anybody experienced the same problem?
looks like the codebuttons-Template is not in original condition
I don't remember modifying that template. However, the content is this one:

<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=1822"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1827"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/plugins/undo.js?ver=1821"></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=1823",
	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>


I compared the template with the same one from Square theme, my old theme still in use, and the only differences are these (Curves UIT on the left side, Square on the right).
There are no problems between Square and Rin, only between Curves UI and Rin.