As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm trying to build something similar to Google Docs, where you can edit a page directly and not through a textarea or iframe. This is possible with the contentEditable HTML5 attribute.
So are there any good editors that I could use on top of contentEditable, to provide features like text formatting, inserting links, pasting from word, etc.?
http://www.aloha-editor.org/ is one that I've found, but I was wondering if there are more.
(edit: I should clarify that I'm not trying to build the whole Google Docs, I just used that as an example of editing the actual content)
Version 2.0 of WYMeditor (currently under heavy development by me and others) also uses contentEditable, but relies mostly on selection/ranges/the dom for manipulation as the behavior of the designMode and contenteEditable API:s differ greatly between browser vendors.
Some of the features/design goals are:
WYSIWYM editing – Separating content and presentation we enable rich text formatting, but leave the presentation to the designer.
A modular architecture – Use only the components you want (and hook them up against your own ui) or drop in a "full stack" editor with toolbars, dialogs and everything.
Strict xHTML(5) – The editor outputs strict XHTML by default (making it easy to transform the content as needed). If thats not what you want you can write your own parser and serializer to support any format you want.
Placeholders/custom elements – Placeholders and even custom elements enable you to manage almost any kind of content inside the editor. Together with the StructureValidator you can enforce rules for nesting, formatting, valid attributes, etc.
Source is available on GitHub and a first beta version is to be expected within a month or two.
Take a look at HTML5 editor, it take a textarea element and transform it into a div with contentEditable. It have a pretty customizable toolbar to easily format content.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm trying to create an application for the iPad but I would like to create a user interface with different styles and controls to those offered in xcode. I would like to create something with an interface like StumblUpon, Flipboard or any other applications that you can see over here http://www.iospirations.com/. I don't know if those kind of interfaces are created with custom controls or some kind of library. If any of you can give some pointers or directions for things to read or try I'll be very grateful. I don't think i can build an interface like those just dragging the standard controls...so that's why I'm completely lost here.
Thanks for your time!
It really depends on what you want to build specifically. You might customise some standard components using UIAppearance Proxy:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html
and some other components you would build from scratch, perhaps by stacking up several views and moving them around programmatically, with custom backing classes and logic. Move them around using UIView animations, or apply transforms to them using C drawing.
Another option might be to look at if there is any open-source components on GitHub that you could use/customize. iCarousel is a good example of this, take a look through the source code.
https://github.com/nicklockwood/iCarousel
Your question is very general, the bottom line is if you want a custom component you need to build it from scratch. I'd advise against doing too much of this, as it makes your code harder to maintain, harder to to keep inline with iOS updates, and usually includes doing loads of work to achieve roughly the same function that Apple gives you for free
Another good resource (not free though) - http://www.appdesignvault.com
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I recently switched to a Mac. I am trying to choose between Textmate 1.5 and Sublime Text 2 for Ruby on Rails development. I know these editors have a great deal in common from my own testing. I don't however see many differences as of yet. If you have experiance with both, can you please make a list of the differences between the two?
Please make any list without subjective comments as I'm not looking to start a flame war; only factual differences. There are many resources that list similarities -- please focus on the differences.
Thank you.
I come form Vim and try both TextMate 2 and Sublime Text 2 for a while. I like them both, but for different reasons.
I'm pretty sure you can make TextMate 2 act almost like Sublime Text 2 by plugins and setting, or vice versa. And they both have tons of gorgeous themes/plugins/snippets. So I just try to list the 'out of box' and potentials difference between them.
TM2:
Open source
Fine integrate with rails just out of box.
Switching between files with hotkey follow rails conventions.
Can move project list to the left.
Install plugin and adjust setting by GUI.
Run rails test in text editor out of box.
More build-in wrapping features.
Complete word by [esc] and add snippet by [Tab]
ST2:
Cross plateform
Ability to imitate some Vim behaviors.
Adjust setting by editing a json file. Less intuitive for GUI user, but can source control and transfer it easily.
Switching between files by Ctrl-P out of box.
Complete word and add snippet all by [Tab]
A 3rd party nice package manager.
Please correct me if any error or missing stuffs. And I think the best way is try them both for couple weeks, know the possibility and tune one of them upon your favorite work flow.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have achieved a beginner skills in mvc3 and now want to try next level.
I want to create a super simple CMS that has following features:
Support extensible skinning, i.e. start with some default dynamic skin and when change database setting for skin name, it should work with the new skin / theme
Dynamic pages loaded from database
partial view I think that can show available pages from database
Can somebody point me on how to get started? I tried to look into source code of orchard, and couple of other popular cms in mvc3 but because of lots of code, I am not just getting it properly to get started with.
Thanks in advance.
Don't worry about what other people are doing at the moment..
If this is just a learning exercise then you should look at what you want to do and then look at how to achieve that...
So your reqs are:
Extensible skinning (like themes in say WP?)
Dynamic pages
An admin area to manage pages
I guess the first thing is to get your areas setup if you want to do it that way.. (add an area for the admin section).
see here -> http://msdn.microsoft.com/en-us/library/ee671793.aspx
or
here -> http://mvccoderouting.codeplex.com/ -> this way could mean no need to set up areas... more detail on the page.
For the dynamic pages you are probably going to do something with routing a default controller.
do you reference the pages by id in the url... or do you have a key that makes up part of the url? that's one design choice you will have to make.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a desktop application framework similar to Rails:
Good ORM
MVC
Default directory structure
View Helpers/DSL
Elegant
Open Source
Fun language
Decently mature
Check out Griffon, a Grails-like framework for Swing application development that fulfills all your needs.
Have you checked out Shoes?
There is also Bowline. It was mentioned in ruby inside blog recently. I haven't tried it. Tried Shoes though. It is very simple.
There is another one called Anvil. Anvil is a MVC framework that wants to be equivalent to rails for GUI development. It is based on wxruby. Which makes me want to try it.
try Rebol, it's got the simplest gui that is out there. an example of a window with one text field, one button "click me" and a label "hello" :-
view layout [ field label "hello" button "click me" ]
or if you want it in multi line
view layout [
field
label "hello"
button "click me"
]
I've personally ended up using Swing/SWT + JRuby. The Java cross-platform GUI libraries are just light-years ahead because they're used for IDEs, which are about the most demanding application you can have for a GUI toolkit. It's nowhere near as elegant as Rails is for the web (and I'm no fan of Rails), but in the long run, it's a much better choice than anything based on wxWidgets or GTK or QT. It also gives you the option to drop into Java if you have a particular piece that's running too slow. I wish there were better options, but that's what we've got.
Monkeybars is the main solution I'm aware of, but it's not ideal from the point of view of your bullet list. Its "MVC" isn't really like any other interpretation of MVC that I've come across; it's more a convenience wrapper around Swing. At least, that's the way I use it.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a visual component that I built from a TFrame (but then registered to the palette, etc); it works great and I loved being able to build it VISUALLY using the IDE.
I would now like to create a "family" of related components, and to do so, would like to create a superclass of this component, and then inherit this component and others from there.
There are a lot of ways to do this, I'm sure, but I'm finding myself wondering: Is there a tool that will convert *.DFM files (i.e. Forms or TFrames) to raw Object Pascal constructor code? Thinking of where it w/b nice to begin w/a visual form or TFrame, but then break from that inheritance at some point, and replace the constructor w/what is essentially a replacement for streaming from the DFM file.
As always, all thoughts / input appreciated.
GExperts "Component To Code", generate the code for selected components.
Property like images you have to sign by yourself.
A little curious why you'd want to do this at first glance... You can inherit from forms/frames in the IDE.
Depends on your version of Delphi, in Delphi 2009, File->New and then select Inheritable Items and pick the Form/Frame of yours that you want to inherit from. In previous versions, you'd pick File-New and there would be a tab for the project's name and a list of all the projects forms to select from.
It's quite handy! You end up with different flavors of Forms/Frames and just about everything you create afterwards is a descendant of one of them.
I second the GExperts comment by Cesar, and would add that images can be included (and names) in Resource files and then INCed into the PAS file.