iframe.js 544 B

123456789101112131415161718192021222324
  1. ///import core
  2. ///import plugins\inserthtml.js
  3. ///commands 插入框架
  4. ///commandsName InsertFrame
  5. ///commandsTitle 插入Iframe
  6. ///commandsDialog dialogs\insertframe\insertframe.html
  7. UE.plugins['insertframe'] = function() {
  8. var me =this;
  9. function deleteIframe(){
  10. me._iframe && delete me._iframe;
  11. }
  12. me.addListener("selectionchange",function(){
  13. deleteIframe();
  14. });
  15. me.commands["insertframe"] = {
  16. queryCommandState : function(){
  17. return this.highlight ? -1 :0;
  18. }
  19. }
  20. };