Yes, nice idea.
________________________________
From: Andrew Wetmore <cottag...@gmail.com>
Sent: Monday, March 8, 2021 9:25 PM
To: Apache Royale Development <dev@royale.apache.org>; yishayj...@hotmail.com 
<yishayj...@hotmail.com>
Subject: Re: using externall javascript libraries (quilljs rich text editor)

@Yishay, would you consider giving a presentation at ApacheCon 2021 on using 
external JS libraries with a Royale app? Since you have a running example, you 
are halfway done with preparing your talk!

Andrew

On Mon, Mar 8, 2021 at 5:53 AM Yishay Weiss 
<yishayj...@hotmail.com<mailto:yishayj...@hotmail.com>> wrote:
I got something working for my app and the emulation components with these 2 
classes

<https://cdn.quilljs.com/1.3.6/quill.snow.css>
package components
{
import mx.core.UIComponent;
public class SMQuillEditor extends UIComponent
{
public function SMQuillEditor()
{
super();
}


private var subComponent:UIComponent;
private var quill:Quill;
override public function addedToParent():void
{
super.addedToParent();
if (!subComponent)
{
subComponent = new UIComponent;
subComponent.percentWidth = 100;
addElement(subComponent);
quill = new Quill(subComponent.element, {"theme": "snow"});
}
}
}
}

and

package
{
/**
* @externs
*/
public class Quill
{
/**
* <inject_script>
* var script = document.createElement("script");
* script.setAttribute("src", "https://cdn.quilljs.com/1.3.6/quill.js";);
* document.head.appendChild(script);
* var link = document.createElement("link");
* link.setAttribute("rel", "stylesheet");
* link.setAttribute("type", "text/css");
* link.setAttribute("href", "https://cdn.quilljs.com/1.3.6/quill.snow.css";);
* document.head.appendChild(link);
* </inject_script>
*/
public function Quill(element:*, config:*){}

}
}

Hope this helps.

________________________________
From: Yishay Weiss <yishayj...@hotmail.com<mailto:yishayj...@hotmail.com>>
Sent: Sunday, March 7, 2021 7:22 AM
To: dev@royale.apache.org<mailto:dev@royale.apache.org> 
<dev@royale.apache.org<mailto:dev@royale.apache.org>>
Subject: Re: using externall javascript libraries (quilljs rich text editor)

Check out TinyEditor as well in the mx package.
________________________________
From: anam <ichsan.a...@gmail.com<mailto:ichsan.a...@gmail.com>>
Sent: Friday, March 5, 2021 7:30 PM
To: dev@royale.apache.org<mailto:dev@royale.apache.org> 
<dev@royale.apache.org<mailto:dev@royale.apache.org>>
Subject: Re: using externall javascript libraries (quilljs rich text editor)

Great, i think it will be very help full :)



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


--
Andrew Wetmore

http://cottage14.blogspot.com/




Reply via email to