Image Gallery with Content Editor

Permalink
Hi!
I've build a Block for C5 5.5-5.6 wich was able to have a Image Gallery and Some Content (With Tiny MCE Editing)

Now i'm able to do this in 5.7 too, but if I want to insert a link or an Image i can't write in the input fields - so I only can choose Pages or Files from the System, which is not very useful (External Links...)

My second problem is, that when i open the EDIT dialog twice without reloading the page, the "Link Insert" dialog opens behind my edit dialog!

I Hope you've got an Idea for me, how to solve the problem!

A little Explanation: The whole adding and editing apperas in a dialog (see screenshot!)

Here's my Code for the editor tab:
[code}
<?php
defined('C5_EXECUTE') or die("Access Denied.");

$fp = FilePermissions::getGlobal();
$tp = new TaskPermission();

?>

<div id="redactor-edit-content"><?= $content ?></div>
<textarea style="display: none" id="redactor-content" name="content"><?= $content ?></textarea>

<script type="text/javascript">
var CCM_EDITOR_SECURITY_TOKEN = "<?php echo Loader::helper('validation/token')->generate('editor')?>";
$(function() {
$('#redactor-edit-content').redactor({
minHeight: '300',
'concrete5': {
filemanager: <?php echo $fp->canAccessFileManager()?>,
sitemap: <?php echo $tp->canAccessSitemap()?>,
lightbox: true
},
'plugins': [
'fontcolor', 'concrete5'
]
});
});
</script>
[/code]

1 Attachment

 
samuelweirer replied on at Permalink Reply
PUSH!
samuelweirer replied on at Permalink Reply
PUSH!
aryeh replied on at Permalink Reply
did you solve this?
samuelweirer replied on at Permalink Reply
Hi,
I solved the problem (external links) by performing an concrete update!

there is anouter problem, that the "Overlay" appers in the background the second time i open it without refreshing the page.

maybe someone has a solution!