It's time to write plugins.
I try it.
Thanks
Vlad

2008/9/4 Godefroid Chapelle <[EMAIL PROTECTED]>:
> Vladislav Vorobiev wrote:
>>
>> Hi,
>>
>> I am looking for feasibility to load and  execute javascript.
>>
>> My kss
>>
>> #myEditor:click {
>> action-server: textEditKss;
>> }
>>
>> myScript
>> con="""aaaaa<script>alert('sasa');</script>aaaaaaaaa"""
>> core=getKSSCommandSet('core').replaceInnerHTML('#myEditor,
>> container.toUnicode(con))
>> return renderKSSCommands()
>>
>> my answer
>> <?xml version="1.0" encoding="utf-8" ?>
>> <kukit xmlns="http://www.kukit.org/commands/1.1";>
>> <commands>
>> <command selector="#myEditor" name="replaceInnerHTML"selectorType="">
>> <param
>> name="html"><![CDATA[aaaaa<script>alert('sasa');</script>aaaaaaaaa]]></param><param
>> name="withKssSetup">True</param>
>> </command>
>> </commands>
>> </kukit>
>>
>> But alert() will not executing by Browser.
>> I need it for initialisation of Epoz editor.
>>
>> Best regards
>> Vlad
>
> When you need to execute specific JS code, you can register an
> action/command with KSS.
>
> look in kss/core/kukit/kukit/plugin.js how the core actions are registered.
>
> Or rather, read the following tutorial
>
> http://kssproject.org/documentation/tutorials/creating-a-kss-plugin
>
> --
> Godefroid Chapelle (aka __gotcha) http://bubblenet.be
>



-- 
Best Regards
Vlad Vorobiev
http://www.mymir.org
_______________________________________________
Kss-devel mailing list
Kss-devel@codespeak.net
http://codespeak.net/mailman/listinfo/kss-devel

Reply via email to