You can customize the generated html with file config/
bb_code_parser_tags.yml.
If you wish to use [url=...]...[/url], just create file config/
bb_code_parser_tags.yml and copy this:
filters:
Links:
url:
htmlopen: "a"
htmlclose: "a"
allowed: "none^img"
attributes: { url: href="%2$s%1$s%2$s" }
On 4 mai, 18:24, dziobacz <[email protected]> wrote:
> Could somebody help me modifysfBBCodeParserPlugin
> OR
> tell me where I should put folder 'HTML' with a real BBCodeParser and
> what should I do if I don't want write each time: require_once 'HTML/
> BBCodeParser.php';
> BECAUSE:sfBBCodeParserPluginhave strange standards.
>
> http://en.wikipedia.org/wiki/BBCode
> In real BBCode we have:
> [url]...[/url] or [url=.........]Example[/url]
>
> http://www.symfony-project.org/plugins/sfBBCodeParserPlugin
> InsfBBCodeParserPluginwe have:
> [url href=..........]Example[/url] !!
>
> THIS IS HORRIBLE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>
> I use TinyMCE:http://tinymce.moxiecode.com/with option bbcode on, it
> converts url to real BBCode:
> [url=http://www.onet.pl]onet[/url]
> but it isn't correct forsfBBCodeParserPlugin- it can't convert it to
> link - it DELETES IT.
>
> So I had to use real BBCodeParser. I put in \sf_sandbox\web folder
> 'HTML' with files real BBCode and in action.class.php one of my module
> I have at the beginning:
> require_once 'HTML/BBCodeParser.php';
>
> but it isn't comfortable, I must each time when I want use
> BBCodeParser write:
> require_once 'HTML/BBCodeParser.php';
>
> Where should I put folder 'HTML' with BBCodeParser and what I should
> do if I don't want write each time:
> require_once 'HTML/BBCodeParser.php';
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---