1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Some TinyMce fixes.

This commit is contained in:
CaMer0n
2012-04-28 08:14:10 +00:00
parent 28710b46b2
commit ba65c4fad1
3 changed files with 68 additions and 23 deletions

View File

@@ -9,8 +9,8 @@
if (!defined('e107_INIT')) { exit; }
/**
* Basic usage [h=2]text[/h]
* The same [h]text[/h] as heading number defaults to '2'
* Basic usage [h=2]text[/h] // this will break things.
* The same [h]text[/h] as heading number defaults to '2' // this won't.
* Advanced usage [h=2|class=className&id=element-id&style=some: style; and: moresStyle]text[/h]
* 'class' defaults to 'bbcode' (if left empty)
*/
@@ -45,9 +45,12 @@ class bb_h extends e_bb_base
}
if($safe)
{
return '[h='.$h.'|'.eHelper::buildAttr($safe).']'.$code_text.'[/h]';
return '[h'.$h.'|'.eHelper::buildAttr($safe).']'.$code_text.'[/h'.$h.']';
}
return '[h='.$h.']'.$code_text.'[/h]';
return '[h'.$h.']'.$code_text.'[/h'.$h.']';
// IMPORTANT: Using '[h=2]' with a non-matching closing tag etc will cause major issues with TinyMce.
// It is cleaner to use [h2], [h3] etc. TODO - Batch BBcodes. ;-)
}