Changeset 5317
- Timestamp:
- 10/18/09 10:58:06 (2 years ago)
- Location:
- branches/Release01x00/TinyMCEPlugin
- Files:
-
- 3 edited
-
data/System/TinyMCEPlugin.txt (modified) (1 diff)
-
pub/System/TinyMCEPlugin/foswiki_tiny.js (modified) (2 diffs)
-
pub/System/TinyMCEPlugin/foswiki_tiny_src.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x00/TinyMCEPlugin/data/System/TinyMCEPlugin.txt
r5314 r5317 136 136 | Release: | %$RELEASE% | 137 137 | Change History: | <!-- versions below in reverse order --> | 138 | 18 Oct 2009 | Foswikitask:Item2270: Fix incorrect wordcount when user first enters edit mode | 138 139 | 17 Oct 2009 | Foswikitask:Item2245: Upgrade to TinyMCE 3.2.7, enabled new standard plugin: wordcount| 139 140 | 20 Sep 2009 | Foswikitask:Item2121: Remove 2 MB of developer files that are not used | -
branches/Release01x00/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny.js
r4145 r5317 22 22 +"Please wait... retrieving page from server." 23 23 +"</span>");FoswikiTiny.transform(editor,"tml2html",text,function(text,req,o){for(var i=0;i<FoswikiTiny.tml2html.length;i++){var cb=FoswikiTiny.tml2html[i];text=cb.apply(this,[this,text]);} 24 if(this.plugins.wordcount!==undefined&&this.plugins.wordcount.blocked!==undefined){this.plugins.wordcount.blocked=0;} 24 25 this.setContent(text);this.isNotDirty=true;FoswikiTiny.enableSaveButton(true);},function(type,req,o){this.setContent("<div class='foswikiAlert'>" 25 26 +"There was a problem retrieving " … … 36 37 return FoswikiTiny.metaTags[inKey];},install:function(){var tmce_init=this.getMetaTag('TINYMCEPLUGIN_INIT');if(tmce_init!=null){eval("tinyMCE.init({"+unescape(tmce_init)+"});");return;} 37 38 alert("Unable to install TinyMCE; <META name='TINYMCEPLUGIN_INIT' is missing");},getTopicPath:function(){return this.getFoswikiVar("WEB")+'.'+this.getFoswikiVar("TOPIC");},getScriptURL:function(script){var scripturl=this.getFoswikiVar("SCRIPTURL");var suffix=this.getFoswikiVar("SCRIPTSUFFIX");if(suffix==null)suffix='';return scripturl+"/"+script+suffix;},getRESTURL:function(fn){return this.getScriptURL('rest')+"/WysiwygPlugin/"+fn;},getListOfAttachments:function(onSuccess){var url=this.getRESTURL('attachments');var path=this.getTopicPath();var params="nocache="+encodeURIComponent((new Date()).getTime()) 38 +"&topic="+encodeURIComponent(path);tinymce.util.XHR.send({url:url+"?"+params,type:"POST",content_type:"application/x-www-form-urlencoded",data:params,success:function(atts){if(atts!=null){onSuccess(eval(atts));}}});}}; 39 +"&topic="+encodeURIComponent(path);tinymce.util.XHR.send({url:url+"?"+params,type:"POST",content_type:"application/x-www-form-urlencoded",data:params,success:function(atts){if(atts!=null){onSuccess(eval(atts));}}});}};; -
branches/Release01x00/TinyMCEPlugin/pub/System/TinyMCEPlugin/foswiki_tiny_src.js
r5012 r5317 238 238 text = cb.apply(this, [ this, text ]); 239 239 } 240 /* SMELL: Work-around for Item2270. In future this plugin may 241 be updated so that this needs to be changed. TMCE's wordcount 242 plugin limits itself to a max. of one count per 243 2 seconds, so users always see a wordcount of 6 (Please 244 wait... retrieving page from server) when they first edit a 245 document. So remove lock before setContent() */ 246 if (this.plugins.wordcount !== undefined && 247 this.plugins.wordcount.blocked !== undefined) { 248 this.plugins.wordcount.blocked = 0; 249 } 240 250 this.setContent(text); 241 251 this.isNotDirty = true;
Note: See TracChangeset
for help on using the changeset viewer.
