could figure out the needed corrections for sceditor.
main aspect was to keep old messages (may be from update) in db also work.
old img tag was
so 1. edit the
bbcode.js from sceditor (media/kunena/core/js/sceditor/bbcode.js)
line 566: (add 'size' attribute name) attribs = '
size=' + dom.width(element) + 'x' + dom.height(element)
to recognize the new 'size' attribute add these
after line 578
//handle [img size=340x240]url[/img]
Code:
if(attrs.size) { match = attrs.size(split(/x/i); width = match[0]; height = match.length ===2 ? match[1] : '';
_important_ 2. in libraries/src/BBCode/
KunenaBBCode.php
we must define the size connector '
x' to be allowed now (formerly only numbers \d*)
so
line 728 must be edited to: allow /^\d*x\d*$/[/b]']
after this images will display in forum view and preview correctly, no matter if they come with
the new style from sceditor
[img size=340x240] or from old kunena messages having
[img size=340]
the big
thing missing in SCEditor is, that the script has no possibility to edit img attributes
(if you activate an image and click the picture icon it does not load the properties of the selected image,
you have to delete and add new to change properties - or use the source code)
I could find out anything about CKEditor because Kunena has cut out property settings
can anyone help please ???
you can try with the attached files: