Page 1 of 1

HTML Text Editor (TinyMCE)

Posted: Wed Apr 23, 2014 10:18 am
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())

Re: HTML Text Editor (TinyMCE)

Posted: Thu Apr 24, 2014 1:39 pm
by Fred
It's also a tiny code, nice :)