The tiki normal editor has a problem when a page uses multiple carat elements. It creates unwanted boxes. i.e 10^¹¹ used twice would create a malformed simplebox breaking the natural math operators into unreadable divisions.
The…
The best result is IMHO to use double carats as beginning/ending delimiters for the simplebox css definition (programmed as "simple-wiki" in the tikilib.php control file.
So, the fix (i.e. hack) that was created by a nonprogrammer on our team was the following:
To change one line in tikilib.php from:
$data = preg_replace("/\^([^\^]+)\^/", "<div class=\"simplebox\">$1</div>", $data);
to …
$data = preg_replace("/\^\^([^\¨]+)\^\^/", "<div class=\"simplebox\">$1</div>", $data);
Note that the character just before the end square bracket is an Umlaut (diacritic) typesetting character (virtually never used on its own—at least to my understanding). We are not programmers, and can only guess that the area where the Umlaut was used to test for additional carat elements as the original definition would not allow for carat characters to occur within the simplebox definition.
Note that this solution allows for multiple css / html elements all to be successfully enclosed in one longer box (haven't tested embedded images though).
Suggestion: Review the hack/fix; determine if this breaks anything. Else redefine the simple box from one carat to two carat delimiters as this will allow simple math functions and other carat usage. Review the hack to ensure that the internal area (where the umlaut lives) is consistent with PHP and wikitiki objectives.
Hope this can be included as an update, as the carat is too important feature to be dropped from normal usage.
(Also, as there is no PREVIEW MODE here, I will just take my best guess as to formatting of this submission. If it is not readable, please e-mail me at:life(dot)of(dotagain)ryli(atsign)gmail(domaindot)com
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |