HTML Text Editor (TinyMCE)

Created a nice software using SpiderBasic ? Post you link here !
User avatar
eddy
Posts: 124
Joined: Thu Mar 27, 2014 8:34 am

HTML Text Editor (TinyMCE)

Post by eddy »

Image

Code: Select all

Procedure LoadScript(Script.s, *OnLoadFunction)
  !$.getScript(v_Script,p_OnLoadFunction);
EndProcedure 


Procedure ScriptLoaded(script.s, status.s, jqxhr)
  If status<>"success" : ProcedureReturn : EndIf
  
  !tinymce.init({selector:'textarea',plugins: [ "autolink print" ]});
  
EndProcedure

!$('textarea').appendTo('body');


LoadScript("https://tinymce.cachefly.net/4.0/tinymce.min.js",@ScriptLoaded()) 
Fred
Site Admin
Posts: 1327
Joined: Mon Feb 24, 2014 10:51 am

Re: HTML Text Editor (TinyMCE)

Post by Fred »

It's also a tiny code, nice :)
Post Reply