简体   繁体   中英

How to add extra read more button for CKEditor?

I'm using ckeditor to add a nice text editor using javascript in my website and it is working great, all I need is to add a read more button for it.

在此处输入图片说明

You can do this by javascript Where your article renders add javascript there

var article = "article content"
var visible_string = string.substring(0, 1000);// Visible characters 0 to 10000

function viewMore(){

//Replace the element where the content is by .innerHTML property = article

}

and then give them a read more

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM