-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from apghalsasi25/bug#152999_new
Bug #311 fix: Frontend>>Editor field not working correctly.
- Loading branch information
Showing
3 changed files
with
82 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?php | ||
/** | ||
* @package TJ-UCM | ||
* | ||
* @author TechJoomla <[email protected]> | ||
* @package TJ-UCM | ||
* | ||
* @author TechJoomla <[email protected]> | ||
* @copyright Copyright (c) 2009-2019 TechJoomla. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
// No direct access | ||
|
@@ -63,6 +63,7 @@ | |
$count++; | ||
$fieldCount = 0; | ||
?> | ||
<div class="tjucm-wrapper"> | ||
<div class="row"> | ||
<?php | ||
foreach ($formObject->getFieldset($fieldset->name) as $field) | ||
|
@@ -178,7 +179,21 @@ | |
|
||
$layout = new JLayoutFile($layoutToUse, JPATH_ROOT . '/components/com_tjfields/layouts/fields'); | ||
$output = $layout->render(array('fieldXml' => $xmlField, 'field' => $field)); | ||
echo $output; | ||
|
||
// To align text, textarea, textareacounter and editor fields properly | ||
|
||
if ($field->type == 'Textarea'|| $field->type == 'Textareacounter'|| $field->type == 'Text' || $field->type == 'Editor') | ||
{ | ||
?> | ||
<div class="tj-wordwrap"> | ||
<?php echo $output; ?> | ||
</div> | ||
<?php | ||
} | ||
else | ||
{ | ||
echo $output; | ||
} | ||
?> | ||
</div> | ||
</div> | ||
|
@@ -188,5 +203,6 @@ | |
} | ||
?> | ||
</div> | ||
</div> | ||
<?php | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters