SCEditor
SCEditor copied to clipboard
Description is removed automatically using Code, hr, b, u, i, s tags
Not reported by me...
Reported by: http://community.mybb.com/thread-163255.html
Create a new custom MyCode: Regular Expression: Code: code=gist[/code]
Now try your new MyCode in a new thread/post. The code gets replaced by a common [code] MyCode.
Full or source editor doesn't makes the difference it seems.
And happen too with other tags hr, b, u, i, s....
https://github.com/mybb/mybb/issues/1674
SCE does not accept regex as search and replacement for tag finding and processing. Which javascript is MyBB generating to define that tag for SCE?
@brunoais better you see video.... http://www.dailymotion.com/video/x2ble7s_editor20_tech
what happen is sceditor remove description from code, b, u etc... tags... when go to WYSIWYG mode and return to source mode.
@martec That's by design. Is anything wrong with the design? Anyway, @martec, Please answer my question:
Which javascript is MyBB generating to define that tag for SCE?
I'm not rejecting anything yet. I'm still trying to diagnose the situation.
@brunoais
simple thing... this happen too with site sceditor.com , we not want that editor remove description from code, b, u, i etc tags, because has people that use description in default tag of sceditor...
Let me see if I understand this... What you want is that, by default, SCE store all BBCode tag parameters in the HTML whether or not it recognizes them, is that it?
@brunoais
i believe that "not it recognizes them" is better... but i will ask to mybb developers...
@brunoais
https://github.com/mybb/mybb/issues/1674#issuecomment-65713785
thanks
I cannot do that. A BBCode tag and it's parameters are not an unity. There's the BBCode tag which exists or not at that position. By existing, it gathers its parameters so that the tag handler can work with them.
All solutions I can think of, do not solve that as they would not produce the wanted result for this editor. The only good solution is to override all tags with that concept. I can help you making the code required for it, if you want, just ask.
@martec
Which javascript is MyBB generating to define that tag for SCE?
@brunoais https://github.com/mybb/mybb/blob/feature/jscripts/bbcodes_sceditor.js
I'll look closer later today or tomorrow.
some result??
sorry I forgot. I don't really know what should be done... Better ask Sam.
@samclarke Please read this.
@samclarke have solution for this? or need recreate all tags to avoid this issue?
@samclarke, any possible solution other than recreating all commands ourselves? Thanks in advance for any input.
This will be fixed by #544