简体   繁体   中英

How can I add a dropdown to add item to my ckeditor

I use ckeditor and would like to be able to give the use a list of Template Tokens (for php smarty, but could be anything) that can be inserted into the main editor text at the cursor

eg.

  • {[$FirstName]}
  • {[$PhoneNumber]}
  • {[$BalanceDue]}

Is there a simple way to create a plugin to do this?

There is a post at kuba.co.uk that gives a very simple example of how to do this.

http://www.kuba.co.uk/blog.php?blog_id=15

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