Skip to Content

Hello!

This is a test post to evaluate the capabilities of the SCN blog engine. Let’s see, how the blog handles

  • images

http://www.nasa.gov/images/content/617883main_VIIRS_4Jan2012.small.jpg

  • external links

http://www.nasa.gov/images/content/617883main_VIIRS_4Jan2012.small.jpg

  • iframe SAP corporate source (MAF Wiki), I have to do it from the HTML editor:

  • iframe from external source (google.com)

  • table 1
Header 1 Header 2 Header 3
  • table 2: without header
  • javascript / html
Click on me

I am also interested in the raw blog entry, namely what markup language does this blog engine use. I can see the HTML switch on the top right handside. If I click on it, I see plain html format, which looks great. No new markup language to learn. It uses <p> paragraphs everywhere. The HTML code so far looks like this (I clicked on the >> button in the Rich Text Editor toolbar above this text area):

<p> </p>
<p>This is a <strong>test post</strong> to evaluate the capabilities of the SCN blog engine. Let's see, how the blog handles </p>
<p> </p>
<ul>
<li>images</li>
<li>iframes</li>
<li>external links</li>
<li>tables</li>
</ul>
<p> </p>
<p>I am also interested in the raw blog entry, namely what markup language does this blog engine use. I can see the <em>HTML</em> switch on the top right handside. If I click on it, I see plain <span style="text-decoration: underline;">html format</span>, which looks great. No new markup language to learn. It uses &lt;p&gt; paragraphs everywhere. The HTML code so far looks like this:</p>
<p> </p>
<pre class="jive_text_macro jive_macro_code " jivemacro="code"  ___default_attr="plain"><p> </p></pre>
<p> </p></body>

This is impressive.

Numbered code lines, also supporting many othet syntax like>SQL, XML, Javascript, Java, C++… no objective C, though.

I am inserting here a Raw HTML:

Hello this is html. The same as inserting Plain, Syntax Highlighting code.

There is no preview for the edited content, because it is already WYSWYG editor. Cool.

You can also click on all the embedded tables, inserted picture, code blocks, and you can simply edit the UI element, easily using the popping up setting tabs.

This is also great!

I am saving it now, then trying to publish the post.

Saved it properly.

No iframe-s any more, they were cut off from the saved code, probably by the engine. hmm..

Okay, published.

Issue1: the too long lines in the code block are not wrapped. Not so nice.

Issue2: iframes cut from the page, jsut like after saving the content

Raw HTML which was presented as in a code block, simply puts its content into the post without the code block frame.

I am trying it again:

1. Click >> in the toolbar

2. Insert Raw HTML

This is test, wondering how it looks like in published post view.

I. Prepare data/content for MAF Tree View

The MAF Tree View component works with the hierarchical data structure called MAFTreeContent defined by MAF. It holds MAFTreeDefaultItem typed elements that can either represent leaf elements or compound/parent elements that hold one or more child elements. In order to make your own data structure visualized by the MAFTreeView you need to:

  • instantiate a MAFTreeContent object, that represent the whole tree, and holds its non visible root element
  • wrap each piece of your data structure’s content into MAFTreeDefaultItem objects embedded in the MAFTreeContent
  • link the items properly and according to the original hierarchy, and bind them to the root element

For that you can use the convenient methods of the MAFTreeContent class:

@interface MAFTreeContent : NSObject <MAFTreeContentProvider>
            @property (nonatomic, retain, readonly) NSMutableDictionary* content;
            @property (nonatomic, retain, readonly) MAFTreeItemDefault* root;
            - (id) initWithRootLabel:(NSString*)label_in;
            - (MAFTreeItemDefault*) addChildItemToParent:(MAFTreeItemDefault*)parent_in
                                                                                                                 withId:(NSString*)id_in
                                                                                                            andLabel:(NSString*)label_in;
            - (MAFTreeItemDefault*) addChildItemToParent:(MAFTreeItemDefault*)parent_in
                                                                                                                 withId:(NSString*)id_in
                                                                                                            andLabel:(NSString*)label_in
                                                                                                            andImage:(UIImage*)image_in;
            - (void) removeChildrenFromParent:(MAFTreeItemDefault*)parent_in
                                                                                     items:(NSArray*)items;
@end

Figure 1 – declaration of the MAFTreeContent class

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply