New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to select partial mode (editor) in ACP Settings and Mycodes PHP support #650
Conversation
This it would have more chances to be accepted by MyBB team if it is an option in the ACP setting instead of UCP? |
switched from UCP to ACP settings. |
Well, I still think thast UCP option would be better as it is personal preference, not sure about partial mode though. If you get more support for this in the topic and will convert the 'source mode' checkbox to a select box with these 3 options:
I'll merge this too. |
Can not put the three options unfortunately. |
I see what you mean, I'll check whether it is possible to use all three optionally at the same time. |
@PaulBender and @Destroy666x |
Works fine for me. If nobody has any other problems, this can be merged. |
"Setting this to yes to put clickable code buttons editor in partial mode." -> I don't think this is proper English grammar and there should probably be a short description of this feature. So I'd use "Editor will be in partial mode if this option is set to 'yes'. Several MyCodes, such as [quote] and [img], will be inserted into it as plain text tags.". Also, you forgot about image width/height. Should be in dropdown like in WYSIWYG mode and inserted as [img=123x123]path[/img] if dimensions are filled. |
Fixes description of this. Changed to "Editor will be in partial mode if this option is set to 'yes'. Several MyCodes, such as [quote] and [img], will be inserted into it as plain text tags." Thanks Destroy666x @Destroy666x and @PaulBender about width/height of image in partial mode... i don´t know if this is possible in partial mode. i will put here part of the code of sceditor:
and other part of the code
You can see in code above that editor use loaded image to determine size if user put only one value (only width or only height) "w = $element.attr('width') || style('width');" "h = $element.attr('height') || style('height');" this must be the reason why in source mode too not has text field to put width and height. Of course i can put width and height but will work only when user put value of width and height, if user put only width value or only height will be ignored. If you do not mind being so, I can add without any problem. |
Yes, that's what I meant. It's better than nothing at least. |
@Destroy666x |
Last thing to correct - lines 417 and 418 in bbcodes_sceditor.js have weird formatting and lines 229-235 have wrong indent. Then I'll merge it. |
@Destroy666x |
Ok, merging. |
Option to select partial mode (editor) in ACP Settings and Mycodes PHP support
@Destroy666x |
Original Thread: http://community.mybb.com/thread-154407.html
Option to select partial mode (editor) in ACP.