Open mochicanos opened 3 years ago
I'm a noob with jquery so any help would be gladly recieved!
I was wondering, how can I put whitespace (or anything) after < /a> and after [/url] tag. Yea, I know it sounds dumb but anything I put after tags, WYSIWYG get screwed...
Original code looks like this:
link : { title: CURLANG.link, buttonHTML: '<span class="fonticon ve-tlb-link1">\uE007</span>', hotkey: 'ctrl+shift+2', modal: { title: CURLANG.modal_link_title, width: "500px", tabs: [ { input: [ {param: "SELTEXT",title:CURLANG.modal_link_text, type: "div"}, {param: "URL",title:CURLANG.modal_link_url,validation: '^http(s)?://'}] }] }, transform : { '<a href="{URL}">{SELTEXT}</a>':"[url={URL}]{SELTEXT}[/url]" }, }
If I put something like this:
transform : { '<a href="{URL}">{SELTEXT}</a> ' : "[url={URL}]{SELTEXT}[/url] " }
Or anything after < /a> or [/url] WYSIBB lose bb tag when I switch between WYSIBB and regular textarea.
Thanks in advance!
I'm a noob with jquery so any help would be gladly recieved!
I was wondering, how can I put whitespace (or anything) after < /a> and after [/url] tag. Yea, I know it sounds dumb but anything I put after tags, WYSIWYG get screwed...
Original code looks like this:
link : { title: CURLANG.link, buttonHTML: '<span class="fonticon ve-tlb-link1">\uE007</span>', hotkey: 'ctrl+shift+2', modal: { title: CURLANG.modal_link_title, width: "500px", tabs: [ { input: [ {param: "SELTEXT",title:CURLANG.modal_link_text, type: "div"}, {param: "URL",title:CURLANG.modal_link_url,validation: '^http(s)?://'}] }] }, transform : { '<a href="{URL}">{SELTEXT}</a>':"[url={URL}]{SELTEXT}[/url]" }, }
If I put something like this:
transform : { '<a href="{URL}">{SELTEXT}</a> ' : "[url={URL}]{SELTEXT}[/url] " }
Or anything after < /a> or [/url] WYSIBB lose bb tag when I switch between WYSIBB and regular textarea.
Thanks in advance!