Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register DNN Web Controls like the TextEditor ? #62

Open
bradbamford opened this issue Nov 9, 2016 · 4 comments
Open

Register DNN Web Controls like the TextEditor ? #62

bradbamford opened this issue Nov 9, 2016 · 4 comments

Comments

@bradbamford
Copy link

How would one reference a DNN user control like TextEditor that normally is registered by referencing DNN controls folder like so:

<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>    
@dazinator
Copy link
Owner

In terms of referencing, nothing should change on that front.

However if you want design time support (i.e in the VS designer) then the designer needs to be able to resolve the Dnn controls at design time.

WARNING: It's been a while since I have tried this, but you should be able to copy the control (i.e TextEditor.ascx) from the Dnn website controls folder, into a local folder with the same relative path inside your project.

Then the tag registration that you showed i.e:

<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>    

Should resolve to the local ascx file within your project.

I seem to remember perhaps having to do some more work around this to get this to work - it's been such a long time since I developed Dnn WebForms style that I forget!

@dazinator
Copy link
Owner

Any joy with this?

@bradbamford
Copy link
Author

Thanks, no I wasn't able to get it work and didn't have a lot of time to spend on it.
I ended up just initializing the ckeditor via javascript which was enough to do what I needed to do.
I may revisit it later when the need arises where I need the specific DNN plugins of the editor.

@bradbamford
Copy link
Author

bradbamford commented Dec 8, 2016

Of note, I did find and example that looked like you could register the controls via namespace instead of pointing to an actual control like shown above. That would work great using DNNPackager. However, I wasn't able to get that to work either, but that may have had something to do with the specific instance of DNN and again I didn't have a lot of time to track down what the issues were. But it looked promising.

see docs link:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants