PHP code example of hxsen / laravel-admin-editormd

1. Go to this page and download the library: Download hxsen/laravel-admin-editormd library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hxsen / laravel-admin-editormd example snippets


$form->editormd('content');

php artisan vendor:publish --provider=Hxsen\EditorMd\EditorMdServiceProvider

$('#editorMdcontent').addKeyMap = function(){
    "Ctrl-S": function(cm) {
        // alert("Ctrl+S");
        saveContent();
    },
    "Ctrl-A": function(cm) { // default Ctrl-A selectAll
        // custom
        alert("Ctrl+A");
        cm.execCommand("selectAll");
    },
};