Ejemplo n.º 1
0
<?php

include __DIR__ . '/../../include.php';
$example = new Raptor\Example('Autoenable');
?>
<!doctype html>
<html>
<head>
    <?php 
echo $example->renderHead();
?>
    <style type="text/css">
        .raptor-editable-block-hover {
            background: none !important;
        }
    </style>
    <script type="text/javascript">
        init(function($) {
            $('.enable').button().click(function() {
                $('.editable').data('uiRaptor').enableEditing();
            });
            $('.disable').button().click(function() {
                $('.editable').data('uiRaptor').disableEditing();
            });
            $('.editable').raptor(extendDefaults({
                layouts: {
                    hoverPanel: false
                }
            }));
        });
    </script>