Python Forum
CKEditor / Rin Editor
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKEditor / Rin Editor
#1
testing in a different editor in attempt to fix some bugs.

0
 1
  2
   3
    4

EDIT:
It appears to have fixed the issue with removing 1 space from code in preview.

However it adds a few other issues. These might be able to be fixed by some tweaking but dont have time for it right now. 
  • quick reply is greatly larger fixed by removing unneeded smilies in quick reply 
  • drag and drop image uploader implemented into CKEditor under image -> upload doesn't appear to work
  • There doesn't appear to be a method to add custom buttons such as our spoiler/output/python/ tags. I mean you could get the job done by just quote and code as it converts to python syntax code box anyways
  • by default the editor is in WYSIWYG mode, and can be changed on the fly by a button to source mode. If in source mode, the editor removes all whitespace before a line. 
  • fast quote doesnt work anymore
On a plus it seems to add some cool functionality.
  • spell and grammar checker
  • auto save
  • option to switch to and from WYSIWYG and source mode with an option to permanently paste as plain text in settings for each user.
  • special character entry
  • search and replace
  •  tables
Ill leave it up for debate for now. Feel free to post bogus stuff here to just test out the editor for other issues.
Reply
#2
class
  def __init__(self):
     pass
I would have to say this editor has some cool features from what i see.
Reply
#3
0
 1
  2
0
 1
  2
   3
Reply
#4
Looks like indents in code are indeed fixed, but unfortunately this doesn't work for output or errors yet.

Code with preview
0
 1
  2
   3
    4
Output with 1 preview
Output:
0 1 2 3 4
Error with 1 preview
Error:
0 1 2 3 4
Other than that this is indeed a fancy editor.
Reply
#5
0
 1
  2
Error:
0  1   2
Output:
0  1   2    3     4
Im getting expected results with output/error tags as well after previewing
Reply
#6
Output:
0  1   2
after previewing, it previews as it should and shows in the editor correctly spaced, and posts as it should. Could you try it again? Are you doing anything different between the code spaced and output/error spaced? Also do what settings do you have the editor in? The top-left says "Source" if its white it in WYSIWYG mode, if its edge is grey like its depressed then its in source mode.
Reply
#7
testing in source mode

0
1
2
0
 1
  2
 
Quote:0
1
2


Output:
0 1 2
Reply
#8
ahh that must be it.

It appears it removes indentation like the old editor in source mode, but retains it in WYSIWYG mode. However this time it is doing all whitespace....no single space removal. Personally i would prefer this way better than the old way...due to a single space being hard to detect, and all whitespace would be an easy indicator for something is wrong.
Reply
#9
I've played around with it a bit and I've come to the same conclusion. I just need to make sure to paste with ctrl+shift+v to paste as plain text, otherwise the formatting is copied too.  In the editor options you can select 'Paste as plain text by default' but that doesn't seem to work unfortunately.
Reply
#10
ill take a look at that button code.

Dont get use to the editor just yet. If people vote it out then its gone. Also currently its in limbo....trying it out mode. Ill leave it as is for a week or so to get users perpective.
Reply


Forum Jump:

User Panel Messages

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