HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: VanillaHtmlFormatter: how to customize, add attributes and class
-
Re: VanillaHtmlFormatter: how to customize, add attributes and class
-
Re: VanillaHtmlFormatter: how to customize, add attributes and class
@R_J there is a bit of an issue with your container init. I'd recommend using the /settings/bootstrap.php file at this point. There are some tradeoffs with the formatter than can complicate things. I wrote new doc over here about it: You container registration is creating the object. That's not really what you want to do.… -
Re: VanillaHtmlFormatter: how to customize, add attributes and class
I don't see an issue with more configurations for something like this. I just don't want the configuration file to contain for loops. I actually misread @donshakespeare's post and was thinking he was suggesting putting that loop into the config file itself. @donshakespeare Please go forward with a PR for that, although I… -
Re: VanillaHtmlFormatter: how to customize, add attributes and class
Since I have no addon but a plugin, I assume I should either use "gdn_pluginManager_afterStart" or "container_init" and I have chosen "container_init". The file in /settings/bootstrap.php is not included // Bootstrapping. foreach ($addonManager->getEnabled() as $addon) { /* @var Addon $addon */ if ($bootstrapPath =… -
Re: VanillaHtmlFormatter: how to customize, add attributes and class
Okay, this is where I am: 1. In my plugin I have that method: public function container_init(Container $dic) { $dic->rule(Vanilla\Formatting\FormatService::class)->addCall( 'registerFormat', [ 'Html', new \Garden\Container\Reference(RJPlugins\CKEditorHtmlFormat::class) ] ); } 2. I have that CKEditorHtmlFormat: <?php… -
Re: VanillaHtmlFormatter: how to customize, add attributes and class
@charrondev This is getting an awful nightmare. I thought it would be easy after figuring that one out public function container_init(Container $dic) { $dic->get(FormatService::class)->registerFormat( 'html', $dic->get(CustomHtmlFormat::class) ); } But the workflow is like that: HtmlFormat->renderHtml() {…
7 results