Shahiem / bbcode-plugin

The plugin implements a BBCode filter and a front-end wysiwyg editor for OctoberCMS
MIT License
3 stars 2 forks source link

Using tables #1

Open fanfar opened 9 years ago

fanfar commented 9 years ago

Is it possible to use tables?

My whitelisting tags: table,tr,td,b,u Instead of HTML I see: [table][tr][td][/td][td][/td][td][/td][/tr][tr][td][/td][td][/td][td][/td][/tr][/table] bold and underline work OK

slowpokefarm commented 8 years ago

To use tables you should add a tableFilter.

in Plugin.php after line

        $code->addFilter(new \Decoda\Filter\ImageFilter());

add line:

        $code->addFilter(new \Decoda\Filter\TableFilter());