I’m working on my first WebSDK Control, a CKEditor implementation. I’ve got it basically working, but I’m having a couple of issues.
First is with positioning. I didn’t find any good examples of how to get control positioning right. I’d like to be able to position it in the IDE like a regular control and have the lock buttons work, and the top, left, width, and height all work. So far I’ve figured out I can get the top, left, width, and height using self.top, etc in my code. That seems to work OK. However, I have not figured out how to adopt the lock styles properly.
For instance, when having on the top center lock selected the positioning styles change using percentages and margins, etc. How can I find out the lock styles to apply, or even when they are applied. I didn’t see anything in the docs for this, or maybe I just didn’t realize what I should be looking for.
Also, another thing that I am not sure of is the way I load the local config files. CKEditor uses plugin.js files and a config.js file for custom configuration. What I’ve done is simply create string constants with the contents of the files I want to use and print them in the handleSpecialURL method on the app. It seems to work well, but I would like a simple way to do this that is self contained in the SDK control. I’m just not sure how I should accomplish that.
It seems like it would be cool to be able to have some special url for webcontrols since this will probably be a common need. Maybe there is already a good way to handle this.