Windows Live Writerのソースコードプラグインのテスト | 廣野秀樹\さらば弁護士鉄道・泥棒神社の物語(金沢地方検察庁御中)

廣野秀樹\さらば弁護士鉄道・泥棒神社の物語(金沢地方検察庁御中)

 殺人未遂事件として木梨松嗣弁護士、長谷川紘之弁護士を金沢地方検察庁に刑事告訴手続き中 (さらば弁護士鉄道\泥棒神社の物語)

 市場急配センター(石川県金沢市)の組織犯罪と加担、隠蔽をした弁護士らの物語(事実)。

Twitterボタン
Twitterブログパーツ

なんかエラーが出たけど、ソースコードは張り付けられた。

 

class KEntry < ActiveRecord::Base
belongs_to :main_db
has_many :k_items
has_many :photos
end




 



 



こんどはJavaScriptでテスト。前のはRuby。



 



Effect.Methods = {
morph: function(element, style) {
element = $(element);
new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
return element;
},
visualEffect: function(element, effect, options) {
element = $(element);
var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
new Effect[klass](element, options);
return element;
},
highlight: function(element, options) {
element = $(element);
new Effect.Highlight(element, options);
return element;
}
};


 



カラー表示とかされていないし、これじゃほとんど意味なし。プラグインインストールしてから、起動しなおしていないからかな。



起動し直したので、もう一度テスト。



 



Effect.Methods = {
morph: function(element, style) {
element = $(element);
new Effect.Morph(element, Object.extend({ style: style }, arguments[2] || { }));
return element;
},
visualEffect: function(element, effect, options) {
element = $(element);
var s = effect.dasherize().camelize(), klass = s.charAt(0).toUpperCase() + s.substring(1);
new Effect[klass](element, options);
return element;
},
highlight: function(element, options) {
element = $(element);
new Effect.Highlight(element, options);
return element;
}
};




 



こんなエラーが出た。



System.NullReferenceException: Object reference not set to an instance of an object.

   at Katamari.WriterPlugin.PropertiesPanelEditor.PropertiesPanelEditor_Load(Object sender, EventArgs e)


   at System.Windows.Forms.UserControl.OnLoad(EventArgs e)


   at System.Windows.Forms.UserControl.OnCreateControl()


   at WindowsLive.Writer.Api.SmartContentEditor.OnCreateControl()


   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)


   at System.Windows.Forms.Control.CreateControl()


   at System.Windows.Forms.Control.ControlCollection.Add(Control value)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.Sidebar.ContentSourceSidebarControl.UpdateView(Object htmlSelection, Boolean force)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.Sidebar.HtmlEditorSidebarHost.UpdateSidebarState(Boolean force)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.Sidebar.HtmlEditorSidebarHost._editorContext_SelectionChanged(Object sender, EventArgs e)


   at System.EventHandler.Invoke(Object sender, EventArgs e)


   at WindowsLive.Writer.HtmlEditor.HtmlEditorControl.OnSelectionChanged(EventArgs e, IHtmlEditorSelection newSelection)


   at WindowsLive.Writer.HtmlEditor.HtmlEditorControl.FireSelectionChanged()


   at WindowsLive.Writer.HtmlEditor.HtmlEditorControl.WindowsLive.Writer.HtmlEditor.IHtmlEditorComponentContext.EndSelectionChange()


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.SmartContentSelection.SelectElement(IHtmlEditorComponentContext editorComponentContext, IHTMLElement e, SmartContentState contentState)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.SmartContentSelection.SelectIfSmartContentElement(IHtmlEditorComponentContext editorComponentContext, IHTMLElement e, SmartContentState contentState)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditorControl.OnInsertHtml(MarkupRange newContentRange)


   at WindowsLive.Writer.HtmlEditor.HtmlEditorControl.InsertHtml(String html, Boolean moveSelectionRight)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditor.InsertHtml(String content, Boolean moveSelectionRight)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditor.InsertContentBlock(String contentSourceId, String content, IExtensionData extensionData)


   at WindowsLive.Writer.PostEditor.PostHtmlEditing.BlogPostHtmlEditor.WindowsLive.Writer.PostEditor.ContentSources.IContentSourceSite.InsertContent(String contentSourceId, String content, IExtensionData extensionData)


   at WindowsLive.Writer.PostEditor.ContentSources.ContentSourceManager.PerformInsertion(IContentSourceSite sourceSite, ContentSourceInfo contentSource)



 



よく考えてみるとアメブロの記事本文ではJavaScript使えなかったような気がする。JavaScriptのライブラリを配置できるとも思えない。