Skip to content
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

How to insert whitespace after tag #204

Open
mochicanos opened this issue Jun 7, 2021 · 0 comments
Open

How to insert whitespace after tag #204

mochicanos opened this issue Jun 7, 2021 · 0 comments

Comments

@mochicanos
Copy link

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>&nbsp;' : "[url={URL}]{SELTEXT}[/url]&nbsp;" }

Or anything after < /a> or [/url] WYSIBB lose bb tag when I switch between WYSIBB and regular textarea.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant