[Ur] Need help with UPO: Ckeditor, Fail: Can't find variable: CKEDITOR?

Artyom Shalkhakov artyom.shalkhakov at gmail.com
Wed Apr 12 02:14:51 EDT 2017


Hello Jeevjyot,

2017-04-12 10:41 GMT+06:00 Jeevjyot Chhabda <jeevsingh at mail.fresnostate.edu>:
> Greetings all,
>
> I am trying to execute Ckeditor example of UPO, it successfully compiles and
> creates an exe but when i try to run,
>
> I get error: "Fail: Can't find variable: CKEDITOR”
>
> I made few changes to the original files, here is
>
> ckbasic.ur
>
> fun main () = return <xml><body>
>       <active code={ck <- Ckeditor.editor {Width = Ckeditor.DefaultSize,
>                                            Height = Ckeditor.DefaultSize,
>                                            ToolbarSet =
> Ckeditor.DefaultToolbarSet,
>                                            InitialText = ""};
>                     return (Ckeditor.show ck)}/>
>     </body></xml>
>
> ckbasic.urp
>
> library ../
>
> ckbasic
>
> ckbasic.urs
>
> val main : unit -> transaction page
>
> Rest the library is just same as uploaded on the Github.
>
> Here is the link to the complete project
> https://github.com/JeevFresno/CkEditorUrweb
>
> I can’t figure where i am going wrong?

I think you're missing the external JS code for CKEditor? You could
include it alongside and PRIOR to your own code via the [jsFile]
directive in [ckeditor.urp].
Or, you could link to the JS file directly in your HTML, but then
you'd probably need to bless the URL.

>
> thanks,
>
> Jeevjyot
>
>
>
> _______________________________________________
> Ur mailing list
> Ur at impredicative.com
> http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
>



-- 
Cheers,
Artyom Shalkhakov



More information about the Ur mailing list