From: <var...@us...> - 2014-10-13 13:14:42
|
Revision: 9251 http://sourceforge.net/p/phpwiki/code/9251 Author: vargenau Date: 2014-10-13 13:14:33 +0000 (Mon, 13 Oct 2014) Log Message: ----------- Use lower case Modified Paths: -------------- trunk/lib/WysiwygEdit.php Modified: trunk/lib/WysiwygEdit.php =================================================================== --- trunk/lib/WysiwygEdit.php 2014-10-13 12:59:27 UTC (rev 9250) +++ trunk/lib/WysiwygEdit.php 2014-10-13 13:14:33 UTC (rev 9251) @@ -51,7 +51,7 @@ /** * FIXME: Handler to convert the HTML formatting back to wiki formatting. * Derived from InlineParser, but returning wiki text instead of HtmlElement objects. - * '<b>text<b>' => '<SPAN style="FONT-WEIGHT: bold">text</SPAN>' => '*text*' + * '<b>text<b>' => '<span style="font-weight: bold">text</span>' => '*text*' * * TODO: Switch over to HtmlParser */ @@ -109,10 +109,10 @@ } } -//'<SPAN style="FONT-WEIGHT: bold">text</SPAN>' => '*text*' +//'<span style="font-weight: bold">text</span>' => '*text*' class Markup_html_spanbold extends BalancedMarkup { - public $_start_regexp = "<(?:span|SPAN) style=\"FONT-WEIGHT: bold\">"; + public $_start_regexp = "<(?:span|SPAN) style=\"font-weight: bold\">"; function getEndRegexp($match) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-11-11 14:15:02
|
Revision: 9305 http://sourceforge.net/p/phpwiki/code/9305 Author: vargenau Date: 2014-11-11 14:14:55 +0000 (Tue, 11 Nov 2014) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/WysiwygEdit.php Modified: trunk/lib/WysiwygEdit.php =================================================================== --- trunk/lib/WysiwygEdit.php 2014-11-10 21:08:06 UTC (rev 9304) +++ trunk/lib/WysiwygEdit.php 2014-11-11 14:14:55 UTC (rev 9305) @@ -40,6 +40,8 @@ * Handler to convert the Wiki Markup to HTML before editing. * This will be converted back by WysiwygEdit_ConvertAfter if required. * *text* => '<b>text<b>' + * + * @param $text */ function ConvertBefore($text) { @@ -54,6 +56,8 @@ * '<b>text<b>' => '<span style="font-weight: bold">text</span>' => '*text*' * * TODO: Switch over to HtmlParser + * + * @param $text */ function ConvertAfter($text) { @@ -128,18 +132,17 @@ class HtmlTransformer extends InlineTransformer { - function HtmlTransformer($tags = false) + function __construct($tags = false) { - if (!$tags) $tags = - array('escape', 'html_br', 'html_spanbold', 'html_simple_tag', - 'html_p',); + if (!$tags) + $tags = array('escape', 'html_br', 'html_spanbold', 'html_simple_tag', 'html_p',); /* 'html_a','html_span','html_div', 'html_table','html_hr','html_pre', 'html_blockquote', 'html_indent','html_ol','html_li','html_ul','html_img' */ - return $this->InlineTransformer($tags); + parent::__construct($tags); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-11-17 15:24:44
|
Revision: 9320 http://sourceforge.net/p/phpwiki/code/9320 Author: vargenau Date: 2014-11-17 15:24:36 +0000 (Mon, 17 Nov 2014) Log Message: ----------- PHP Doc Modified Paths: -------------- trunk/lib/WysiwygEdit.php Modified: trunk/lib/WysiwygEdit.php =================================================================== --- trunk/lib/WysiwygEdit.php 2014-11-17 15:20:33 UTC (rev 9319) +++ trunk/lib/WysiwygEdit.php 2014-11-17 15:24:36 UTC (rev 9320) @@ -42,6 +42,7 @@ * *text* => '<b>text<b>' * * @param $text + * @return string */ function ConvertBefore($text) { @@ -58,6 +59,7 @@ * TODO: Switch over to HtmlParser * * @param $text + * @return string */ function ConvertAfter($text) { @@ -95,6 +97,7 @@ case 'em': return "_" . $body . "_"; } + return ''; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-07-21 09:43:14
|
Revision: 9894 http://sourceforge.net/p/phpwiki/code/9894 Author: vargenau Date: 2016-07-21 09:43:11 +0000 (Thu, 21 Jul 2016) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/WysiwygEdit.php Modified: trunk/lib/WysiwygEdit.php =================================================================== --- trunk/lib/WysiwygEdit.php 2016-07-21 09:17:56 UTC (rev 9893) +++ trunk/lib/WysiwygEdit.php 2016-07-21 09:43:11 UTC (rev 9894) @@ -26,7 +26,7 @@ abstract class WysiwygEdit { - function WysiwygEdit() + function __construct() { $this->_transformer_tags = false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-09-20 10:41:06
|
Revision: 10587 http://sourceforge.net/p/phpwiki/code/10587 Author: vargenau Date: 2021-09-20 10:41:03 +0000 (Mon, 20 Sep 2021) Log Message: ----------- Remove useless local variable Modified Paths: -------------- trunk/lib/WysiwygEdit.php Modified: trunk/lib/WysiwygEdit.php =================================================================== --- trunk/lib/WysiwygEdit.php 2021-09-20 10:37:42 UTC (rev 10586) +++ trunk/lib/WysiwygEdit.php 2021-09-20 10:41:03 UTC (rev 10587) @@ -94,8 +94,7 @@ if (empty($trfm)) { $trfm = new HtmlTransformer($this->_transformer_tags); } - $markup = $trfm->parse($text); // version 2.0 - return $markup; + return $trfm->parse($text); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |