Skip to content

zikezhang/Cpalcon-Ueditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Cpalcon-Ueditor

##Usage

  • download urditor plugin to /public/pugins/ueditor/。

  • configurate file is located at /app/config/ueditor.php

  • upload controller is /controller/UploadContoller.php

  • @/app/view/post/add.volt

$(document).ready(function(){
        var ue = UE.getEditor('content',{
            serverUrl:'{{ url.get("upload") }}'
        });

        function getPlainTxt() {
            return ue.getPlainTxt();
        }

        $('form.editform button[name="submit"]').click(function(){
            var articletext = getPlainTxt();
            $('input[name=excerpt]').val(articletext);
        });

    });

##todo

  • upload video
  • google map

Other

@see https://github.com/fex-team/ueditor

About

This package integrate ueditor into your palcon app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published