first
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="csrf-token" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Edit <?php echo e($model->editor_page_title); ?></title>
|
||||
|
||||
<?php $__currentLoopData = $editorConfig->getStyles(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $style): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<link rel="stylesheet" href="<?php echo e($style); ?>">
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
window.editorConfig = <?php echo json_encode($editorConfig ?? [], 15, 512) ?>;
|
||||
|
||||
Object.defineProperty(window, 'grapesjs', {
|
||||
value: {
|
||||
plugins: {
|
||||
plugins: [],
|
||||
|
||||
/**
|
||||
* Add new plugin. Plugins could not be overwritten
|
||||
* @param {string} id Plugin ID
|
||||
* @param {Function} plugin Function which contains all plugin logic
|
||||
* @return {Function} The plugin function
|
||||
* @example
|
||||
* PluginManager.add('some-plugin', function(editor){
|
||||
* editor.Commands.add('new-command', {
|
||||
* run: function(editor, senderBtn){
|
||||
* console.log('Executed new-command');
|
||||
* }
|
||||
* })
|
||||
* });
|
||||
*/
|
||||
add(id, plugin) {
|
||||
if (this.plugins[id]) {
|
||||
return this.plugins[id];
|
||||
}
|
||||
|
||||
this.plugins[id] = plugin;
|
||||
|
||||
return plugin;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns plugin by ID
|
||||
* @param {string} id Plugin ID
|
||||
* @return {Function|undefined} Plugin
|
||||
* @example
|
||||
* var plugin = PluginManager.get('some-plugin');
|
||||
* plugin(editor);
|
||||
*/
|
||||
get(id) {
|
||||
return this.plugins[id];
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns object with all plugins
|
||||
* @return {Object}
|
||||
*/
|
||||
getAll() {
|
||||
return this.plugins;
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="<?php echo e(str_replace('#', '', $editorConfig->container ?? 'editor')); ?>"></div>
|
||||
|
||||
<?php $__currentLoopData = $editorConfig->getScripts(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $script): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<script src="<?php echo e($script); ?>"></script>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||||
</body>
|
||||
</html><?php /**PATH /home/rohiniedu/public_html/resources/views/vendor/laravel-grapesjs/edittor.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user