Python Forum
CKEditor / Rin Editor
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKEditor / Rin Editor
#21
I am unsure there can be some work with editor,
the old one did work fine(just the 1-indent problem).
That could be fixed with a red message in Quick reply to not post code there.

There is Rin Editor (Powerd by CKEditor),that is actively developed.
Has add/remove button in ACP.
Maybe try it.
Reply
#22
(Jul-25-2017, 05:11 PM)Larz60+ Wrote: I'm in the habit if typing the bbcodes myself, don't know why,

Same, but that's just because I can type faster than I can find the buttons on the toolbar :p
Reply
#23
Things I like and don't like.
(Source Code (SC) inactive = button plain, Source Code (SC) active = button grey edges)
Links
Like SC active: option for description
Dislike SC inactive: no option for description
Dislike both: auto protocol inserted (though SC inactive will not repeat protocol when pasted)

Lists
Like SC inactive: it just creates the list
Dislike SC active: not very intuitive

Code
No thought either way, since it appears the "python, quote, output and error" tags written manually still work

Final thought:
If at all possible, I would still like to see a mono-spaced font, if it can't be done for the code, output, quotes and errors, then as a default for the editor as a whole.  I also noticed my default text size is X-Small, it would be nice if, at a minimum, it were Small.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#24
so i changed the editor to Rin. This does have options to add/remove buttons in ACP. However i can successfully add a button, but i cant get rid of the PHP button. If you view plugin config the instructions for Rin are actually the best instructions in ACP i have seen for any plugin ever for MyBB. But when i add the tag name PHP for removal, it doesnt remove the php button. I can however add a python button in the same method though.

EDIT:
OK i think i got it. The Rin editor is quite similar with CKEditor mixed with myinsertbuttons/myinsertcommands.
Recommended Tutorials:
Reply
#25
testing if this editor still does funky -1 space. This editor also appears to not remove any whitespace whether WYSIWYG/source mode you are in. I think we have a winner editor here. 

0
 1
  2
   3

0
 1
  2
   3
Error:
0  1   2
Output:
0  1   2
Recommended Tutorials:
Reply
#26
This editor looks and works okay for me.
Has also language detection.
I guess we can keep Insert Code button and Insert python button as they do same?
Reply
#27
This editor is fine, but we need an upload button for images and attachments
Reply
#28
(Jul-26-2017, 09:39 AM)snippsat Wrote: I guess we can keep Insert Code button and Insert python button as they do same?
I kinda like the javascript popup aspect of the the "code" button. Although i dont like it, i wonder if  it might help new users in explicitly stating that is for code instead of figuring out BBCode tags (at least in the beginning).

The only thing that doesnt work that i wished did, was the fast quote. Which i used that to select a portion or sentence of a post and get the username and post stamp with it. Example: The quote above ^^^ i had to quote the whole post, and manually delete everything i didnt want quoted. I guess i could replicate it by just copy/paste, but i usually am too lazy to add username or other info and that was a nice feature. They do show a feature as "Quick Quote" but i am not sure how that works?
Recommended Tutorials:
Reply
#29
(Jul-26-2017, 10:51 AM)Larz60+ Wrote: This editor is fine, but we need an upload button for images and attachments
It is missing this feature compared to the other editor. But there is still the good old attachment at the bottom. And there is an image button that accepts a url (its a square blue box)
Recommended Tutorials:
Reply
#30
So one issue with the code box that comes with the editor, is if you dont put it in source mode before pasting code you can lose your indentation. So i guess based on that it should go?
 import pygame as pg

screen = pg.display.set_mode((800,600))
screen_rect = screen.get_rect()
done = False
cursor_img = 'curs.jpg'
cursor = pg.image.load(cursor_img).convert()
cursor_rect = cursor.get_rect()
is_cursor = False

while not done:
screen.fill((255,0,0))
for event in pg.event.get():
if event.type == pg.QUIT:
done = True
elif event.type == pg.MOUSEBUTTONDOWN:
pg.mouse.set_visible(False)
is_cursor = True

cursor_rect.center = pg.mouse.get_pos()
if is_cursor:
screen.blit(cursor, cursor_rect)
pg.display.update()
whereas if you type code tags
import pygame as pg

screen = pg.display.set_mode((800,600))
screen_rect = screen.get_rect()
done = False
cursor_img = 'curs.jpg'
cursor = pg.image.load(cursor_img).convert()
cursor_rect = cursor.get_rect()
is_cursor = False

while not done:
    screen.fill((255,0,0))
    for event in pg.event.get():
        if event.type == pg.QUIT:
            done = True
        elif event.type == pg.MOUSEBUTTONDOWN:
            pg.mouse.set_visible(False)
            is_cursor = True

    cursor_rect.center = pg.mouse.get_pos()
    if is_cursor:
        screen.blit(cursor, cursor_rect)
    pg.display.update()
or use python button

import pygame as pg

screen = pg.display.set_mode((800,600))
screen_rect = screen.get_rect()
done = False
cursor_img = 'curs.jpg'
cursor = pg.image.load(cursor_img).convert()
cursor_rect = cursor.get_rect()
is_cursor = False

while not done:
    screen.fill((255,0,0))
    for event in pg.event.get():
        if event.type == pg.QUIT:
            done = True
        elif event.type == pg.MOUSEBUTTONDOWN:
            pg.mouse.set_visible(False)
            is_cursor = True

    cursor_rect.center = pg.mouse.get_pos()
    if is_cursor:
        screen.blit(cursor, cursor_rect)
    pg.display.update()
that does not happen
Recommended Tutorials:
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020