MyBB 2.0 will allow WYSIWYG editor to be turned off by either admin panel or by each suer if wished.
MyBB 2.0 confirmed feature changes
Quote:I know when I post code and try to preview it half the time it strips all my formatting;
It should be defaulted to source mode (everyone), and only go to WYSIWYG mode when toggled on within the editor each time you go into the editor based on
this change. It only removes the indentation in WYSIWYG mode. I usually avoid turning it on due to it removing indentation in the code.
Also that might account for loss of indentation in peoples code, but not the absence of code tags.
Im trying to get them to realize and
fix the issue with the default editor in which caused us to move to the Rin editor in the first place.
Quote:Python Coding | Use code tag Click for how to use
Personally i dont think this looks good at all. IF we do that we might as well make a banner at the header area. I think that would look better as well as be more vibrant. I also dont think people are going to read the help docs with more links cluttered all over the forum. They just dont read it. They immediately go to the largest forum thread count and post without looking at help at all.
Quote:is there a way to make it so that the in-browser editor automatically adds codes when, say, someone pastes three or more lines?
I think this would require a lot of code that we non PHP devs seem not to be able to implement. Although that would surely fix the problem. One method i think i could implement, would be to disallow the post if the condition is met. Condition being X amount of python keywords? Or indented space...but then some people dont even make sure their code is indented. Then it would show a message saying that code was detected and code tags (ie [ python ]) were not used with a link to BBcode in a new tab to instruct how to use them if they dont know how.
And yes it closely resembles the other case...but i know how to deny a post, and not how to auto implement code tags around suspected python code. Maybe @[stranac] might know more as he seems to be much better at PHP.
But then you might be introducing them to more screenshot uploads...not sure.
EDIT:
Quote:someone pastes three or more lines?
Oh i just realized that you meant 3 entire lines, not 3 lines of code. Wouldnt that be annoying to people just posting in discussions not having any code?