News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

editor in 2.1 adds quotes in bbc link help

Started by vbgamer45, March 06, 2022, 10:37:28 PM

Previous topic - Next topic

vbgamer45

I have this bbc code
[url=https://www.ezportal.com/]ezPortal[/url]

Once loaded into the editor with
            $editorOptions = array(
                'id' => 'bbcfield' . $row['id_parameter'],
                'value' => $row['data'],
                'width' => '90%',
                'form' => 'frmeditblock',
                'labels' => array(
                    'post_button' => ''
                ),
            );
            create_control_richedit($editorOptions);
            $context['post_box_name'] = $editorOptions['id'];

It changes on display to
[url="https://www.ezportal.com/"]ezPortal[/url]

Which causes issues due to the quotes added.

DB has no quotes. Just when I try to load the data something is adding quotes not sure what it is.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sesquipedalian

This is as intended, and will not cause any issues in standard SMF code. #3565
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

vbgamer45

Good to know that is how it is supposed to be. Was going nuts for a while with 2.0 that noticed it did not have that.

In 2.1 was a little confused since the editor button doesn't put quotes around the url when clicking on the button by default
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: