spell-checker-compressed.js
来自「Typo3, 开源里边最强大的」· JavaScript 代码 · 共 3 行
JS
3 行
SpellChecker=function(editor){this.editor=editor;var cfg=editor.config;var actionHandlerFunctRef=SpellChecker.actionHandler(this);cfg.registerButton("SpellCheck",SpellChecker_langArray["SC-spell-check"],editor.imgURL("spell-check.gif","SpellChecker"),false,actionHandlerFunctRef);};SpellChecker.I18N=SpellChecker_langArray;SpellChecker._pluginInfo={name:"SpellChecker",version:"2.1",developer:"Mihai Bazon & Stanislas Rolland",developer_url:"http://dynarch.com/mishoo/",c_owner:"Mihai Bazon & Stanislas Rolland",sponsor:"American Bible Society & Fructifor Inc.",sponsor_url:"http://www.fructifor.ca/",license:"GPL"};SpellChecker.actionHandler=function(instance){return(function(editor,id){instance.buttonPress(editor,id);});};SpellChecker.prototype.buttonPress=function(editor,id){var editorNumber=editor._editorNumber;switch(id){case "SpellCheck":SpellChecker.editor=editor;SpellChecker.init=true;SpellChecker.f_dictionary=_spellChecker_lang;SpellChecker.f_charset=_spellChecker_charset;SpellChecker.f_pspell_mode=_spellChecker_mode;SpellChecker.enablePersonalDicts=RTEarea[editorNumber]["enablePersonalDicts"];SpellChecker.userUid=RTEarea[editorNumber]["userUid"];var param=new Object();param.editor=editor;param.HTMLArea=HTMLArea;if(SpellChecker.f_charset.toLowerCase()=='iso-8859-1')editor._popupDialog("plugin://SpellChecker/spell-check-ui-iso-8859-1",null,param,670,515);else editor._popupDialog("plugin://SpellChecker/spell-check-ui",null,param,670,515);break;}};SpellChecker.editor=null;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?