We have to migrate our asp.net mvc views, that use webforms view engine, into razor view engine.
The situation is that we have a group of web designers that uses dreamweaver to change the html of these files.
Do you know if there is something in dreamweaver to view correctly the razor code (i mean, hightlighted to easily read for them)?
Support for ASP.NET was dropped in Dreamweaver CS4 (current version is CS5), so any support would come only through a third-party plugin.
I followed Peters steps for adding cshtml to the list of editable files:
http://blog.metameister.com/blog/2011/04/08/open-new-file-types-and-add-syntax-highlighting-in-dreamweaver-cs5-on-windows-7/
Since Dreamweaver does not recognize Razor elements, this allows to edit the csHTML inside Dreamweaver, while in the design view you see the Razor parts is if they were text.
If your designers expect a design view, they might not be happy, if they are coder-designer how tweak raw (cs)html, then that might help them.
For me that is helpful, although I like the Visual Studio text editor a lot, writing text inside the page is sometimes easier with DW, for instance making some text goes by ctrl-b inside DW while I could not figure out a way to do this in VS by shortcut.
Razor is still in beta so I would be surprised if there are any plugins available yet.
Related
I need to show a form to the user from Lotus notes customization extension file (Forms85.nsf). For that I have created a form in Customization file i.e. in Forms85_x.nsf Extension file. The form is properly loaded with all the controls (buttons ,textboxes ,comboboxes) while I’m previewing in Domino server but, whenever I’m trying to access the form from users browser it doesn’t show the controls like button. But the controls in the forms are loading properly while I’m having the form in users own mail file i.e. someone.nsf.
When you say "buttons", are you talking about action buttons in the action menu, or buttons on the form?
The mail template is web-enabled, but you may done something on your form that won't work on the web.
What code do you have behind your buttons? Are you using Lotuscript of Formula?
Also, to be picky (but we are all developers, and it is a requirement to be precise for us), you probably mean that you previw it in Notes (using the Notes client), not Domino. Domino is the server, and the only way to view an appliaction on teh Domino server is by using a browser.
You can do really cool things in Domino web applications, with justa little bit of CSS and Javascript. I frequently use jQuery to create more advance web application, calling Lotusscript agents through Ajax to read/write/update documents in the database. Perhaps you can use that technique?
Customizing iNotes does not work like that. You found the right place to add your customization code, but unfortunately not the right way to do it. The forms in forms85_x.nsf are not supposed to be used as "normal" forms. You put html and javascript in there as plain text (no passthrough html).
Action buttons can be added by using special javascript commands, not by adding buttons in the form. Start reading here about how to do this.
Just forget about everything you know about web-development in domino (classic or xpages) and learn how to do "iNotes" as the only thing in common are the "languages" html and javascript and css
I have an app for a text editor developed by OMNI Group. I need to integrate this text editor with one of my other apps. I have no idea as to how should I do it. Can someone provide me any directions as to how should I begin with it. I googled a lot but could not find much help. Thanks and regards.
1: Assuming that your text editor is an online editor living in a browser, simply implement a UIWebView and it should just work. For example, an editable <textarea> is rendered without problems in a UIWebView.
If you need other special features you have implemented with javascript and the like you need to test if they work in the UIWebView.
2: If, however, the text editor is already working in another iOS app, simply copy the classes that you are using to implement the editor into your new project and use them in an equivalent way, tweaking where necessary. If you followed the programming principle of incapsulation this should be a breeze.
We have been using asp.net mvc razor technology as a template engine to allow the user to develop razor scripts on the client. we are using this for email template engine.
You can see example at Ricks blog on that
http://www.west-wind.com/weblog/posts/2010/Dec/27/Hosting-the-Razor-Engine-for-Templating-in-NonWeb-Applications
I was wondering if anyone know of a WYSIWYG style editor for the client browser that we can use instead of just a TextArea? Something similar to Visual Studio editor that show razor syntax etc..
Thanks,
Noam
That sounds like an interesting application. I don't think there's an editor that supports the Razor syntax, but you can probably modify an existing client-side rich HTML editor to fit your needs. Here are some listed: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors
Following are the links to MVC HTML editor that you might already know:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/HTMLEditorExtender/HTMLEditorExtender.aspx
http://mvccontroltoolkit.codeplex.com/
http://richtexteditor.com/mvc/
I looking for either an open source (or otherwise) php script/library/code that will provide me with a similar email composer that Mailchimp and Campaign Monitor have.
I've played around with lots of wysiwyg editors (eg: tinymce, ckeditor) but, they don't work very well for allowing users to compose emails.
Mosaico Editor is the first open source email template builder of this kind (AFAIK).
You can find a free to use deployment (working also as live demo) at http://mosaico.io and you can get sources at https://github.com/voidlabs/mosaico
I choose blocks from a set defined by the "master template", then you fill you contents and change their styles in a WYSIWYG style. If you're on a large window you can also have live preview for the mobile version.
The master template defines what are the blocks, what you can edit and what you can style and it contains any html trick to make it compatible with most clients: this means you can change the editor behaviour a lot by simply writing a new master template.
It is 99% javascript (IE10+, and any other modern browser) and depends on server-side functions only to do "final inlining" and "image upload/resizing"
Next generation tool for building templates without coding
Grapejs official site
GrapesJS is an open-source, multi-purpose, Web Builder Framework which combines different tools and features with the goal to help you (or users of your application) to build HTML templates without any knowledge of coding. It's a perfect solution to replace the common WYSIWYG editors, which are good for content editing but inappropriate for creating HTML structures. You can see it in action with the official demos, but using its API you're able to build your own editors.
I'm in the process of building one but as a designer it is a work in progress! I'd suggest looking at PHP template engines. They have a similar functionality. Most however will use php variables inside the html page instead of tags.
Another oprion is to check out Perch it is officially a CMS, but is really lightweight and might get the job done for you.
Hope that helps even though it is a year after you posted the question...
EDIT: Actually just stumbled across this thread which links to the new CKEditor - looks pretty cool.
I am looking for a list of WYSIWYG editors that use contentEditable rather than a designMode iframe.
The reason I want this is that I want to have a few regions (divs) on my site that users can edit, and I want the styling (fonts, font colors, etc). to look the same in the edit area as it normally does. I don't want to have to apply a stylesheet to the WYSIWYG's iframe.
Anyone know of any light-weight, free/open-source ones?
It's not free but I personally feel that the Telerik RadEditor is hands down the best WYSIWYG around.
It's not free
It's .NET only
It allows you to style the editor to match your site exactly
It has some great asset management tools
It's super easy to configure.
Also if you can get away with a little less "fancy" I'd say that WMD is an awesome WYSIWY***M*** editor, and can be used across multiple development languages (It's what StackOverflow uses here on this site).
New ckeditor v4 beta has support for content-editable. http://ckeditor.com/ckeditor-4-beta
Looks like NicEdit uses contentEditable. YAY! THIS MAY WORK!
Another few to throw in there, although I've never used any of them in production so can't vouch for them:
Aloha Editor
wysihtml5
Raptor Editor