[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: 964
Joined: Fri Dec 18, 2009 3:55 pm

[Template] acp_bbcodes_html_replacement_after

Post by brunoais »

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
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

Re: [Template] acp_acp_bbcodes_html_replacement_after

Post by MattF »

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

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

Re: [Template] acp_bbcodes_html_replacement_after

Post by brunoais »

Done

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

Re: [Template] acp_bbcodes_html_replacement_after

Post by Nicofuma »

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

Post Reply