[Template] acp_bbcodes_html_replacement_after

Request hook events and what data needs to be sent for the new hook system.
Post Reply
User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

[Template] acp_bbcodes_html_replacement_after

Post by brunoais » Tue Jun 17, 2014 1:47 pm

Identifier: acp_bbcodes_html_replacement_after
Prosilver Location:
After:

Code: Select all

	<fieldset>
		<legend>{L_HTML_REPLACEMENT}</legend>
		<p>{L_HTML_REPLACEMENT_EXPLAIN}</p>
	<dl>
		<dt><label for="bbcode_tpl">{L_EXAMPLES}</label><br /><br /><span>{L_HTML_REPLACEMENT_EXAMPLE}</span></dt>
		<dd><textarea id="bbcode_tpl" name="bbcode_tpl" cols="60" rows="8">{BBCODE_TPL}</textarea></dd>
	</dl>
	</fieldset>
Before:

Code: Select all

	<fieldset>
		<legend>{L_BBCODE_HELPLINE}</legend>
		<p>{L_BBCODE_HELPLINE_EXPLAIN}</p>
	<dl>
Explanation:

This is mean for the WYSIWYG editor. It is supposed to allow having the editor to behave as an RTE or a real WYSIWYG for that specific BBCode.
As discussed here: https://area51.phpbb.com/phpBB/viewtopi ... 08&t=35703
For example, for some BBCode such as the [spoiler] BBcode probably work best as an RTE (and nearly as an WYSWIYG). It could be such that the spoiler is always open and not closing or without the toggle button at all, etc...
There are also BBCode that are hellish complex and require activating and deactivating the contentEditable attribute otherwise the user can break the HTML structure rendering the process way harder (or impossible) for the editor to translate between BBCode and HTML.
Last edited by brunoais on Tue Jun 17, 2014 5:23 pm, edited 1 time in total.

User avatar
VSE
Extension Customisations
Extension Customisations
Posts: 670
Joined: Mon Mar 08, 2010 9:18 am

Re: [Template] acp_acp_bbcodes_html_replacement_after

Post by VSE » Tue Jun 17, 2014 5:14 pm

Should lose the double acp, and call it acp_bbcodes_html_replacement_after
Has an irascible disposition.

User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Re: [Template] acp_bbcodes_html_replacement_after

Post by brunoais » Tue Jun 17, 2014 5:23 pm

Done

Nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 297
Joined: Sun Apr 13, 2014 1:40 am
Location: Paris

Re: [Template] acp_bbcodes_html_replacement_after

Post by Nicofuma » Fri Aug 29, 2014 1:17 pm

it is not covered by acp_bbcodes_edit_fieldsets_after ?
Member of the phpBB Development-Team
No Support via PM

Post Reply