Suche senden
Hochladen
Confluenceのエディターを改造する方法 at Atlassian Users Group Japan Vol.10
•
Als PPTX, PDF herunterladen
•
2 gefällt mir
•
4,437 views
Takashi ITOH
Folgen
Confluenceのリッチテキストエディタの改造方法について簡単にまとめました。
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 22
Jetzt herunterladen
Empfohlen
5分で出来る!イケてるconfluenceページ
5分で出来る!イケてるconfluenceページ
CLARA ONLINE, Inc.
JIRA / Confluence の必須プラグインはこれだ
JIRA / Confluence の必須プラグインはこれだ
Narichika Kajihara
Transition to high-speed WORDPRESS using KUSANAGI
Transition to high-speed WORDPRESS using KUSANAGI
Sumito Tsukada
Flex/AIR×GAE/J開発tips
Flex/AIR×GAE/J開発tips
Kazunori Sato
Doc management by Confluence+Jira
Doc management by Confluence+Jira
Kazunori Sato
Confluenceショートカットキー表 v1
Confluenceショートカットキー表 v1
Naho Inuyama
Confluence&JIRA導入までの軌跡
Confluence&JIRA導入までの軌跡
CLARA ONLINE, Inc.
情報共有は、なぜGoogle Docsじゃなく、 Confluenceなのか。
情報共有は、なぜGoogle Docsじゃなく、 Confluenceなのか。
Narichika Kajihara
Empfohlen
5分で出来る!イケてるconfluenceページ
5分で出来る!イケてるconfluenceページ
CLARA ONLINE, Inc.
JIRA / Confluence の必須プラグインはこれだ
JIRA / Confluence の必須プラグインはこれだ
Narichika Kajihara
Transition to high-speed WORDPRESS using KUSANAGI
Transition to high-speed WORDPRESS using KUSANAGI
Sumito Tsukada
Flex/AIR×GAE/J開発tips
Flex/AIR×GAE/J開発tips
Kazunori Sato
Doc management by Confluence+Jira
Doc management by Confluence+Jira
Kazunori Sato
Confluenceショートカットキー表 v1
Confluenceショートカットキー表 v1
Naho Inuyama
Confluence&JIRA導入までの軌跡
Confluence&JIRA導入までの軌跡
CLARA ONLINE, Inc.
情報共有は、なぜGoogle Docsじゃなく、 Confluenceなのか。
情報共有は、なぜGoogle Docsじゃなく、 Confluenceなのか。
Narichika Kajihara
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Weitere ähnliche Inhalte
Empfohlen
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Empfohlen
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Confluenceのエディターを改造する方法 at Atlassian Users Group Japan Vol.10
1.
Confluenceのエディタを改造する方法 JavaScriptとClosure TemplateのみでできるConfluenceプラグ イン 伊藤 貴史 ナレッジオンデマンド株式会 Copyright
© 2013 Knowledge on Demand Inc. 社
2.
自己紹介 WEB制作者 基本はLAMP(Linux+Apache+MySQL+PHP)と JavaScript – JavaはConfluenceのプラグインで学びだした程度 Atlassian製品は、ConflueneメインでJIRAを少 々 – 最近触れたJIRA
Agileに感動 SNS – http://fb.me/tohokuaiki – https://twitter.com/tohokuaiki Copyright © 2014 Knowledge on Demand Inc.
3.
アジェンダ Confluenceのリッチテキストエディタ愛を語る プラグインの作り方について デモ Copyright © 2014
Knowledge on Demand Inc.
4.
Confluenceのリッチテキストエディタ 自分がConflueneが素晴らしいと感じる一番の要 因 – 職業柄、WEBベースのリッチエディタはいくつか試し た • TinyMCE http://tinymce.ephox.com/online-demo •
CKEditor/FCKEditor http://ckeditor.com/demo • MediawikiやWordPressなどに付属の編集エディタ – 実際に使ってみると、なんかいまいち・・・・。 Copyright © 2014 Knowledge on Demand Inc.
5.
Confluenceのリッチテキストエディタ 別にこれらのWYSIWYGエディタが悪いわけではな い – 最初は感動するし、改造も容易になっている。 – ただ、WEB制作の一端やWikiなどの記事を書かせるの にはちょっと不都合な面や、敷居が高いところがあ る。 こんなタグ見ても理解できない・・・ float:rightを持ったCSSを充てる必要がある Copyright
© 2014 Knowledge on Demand Inc.
6.
Confluenceのリッチテキストエディタ 最初にConfluenceのエディタを見た時の自分の 反応 – Wiki記法の方が書きやすいし、早いじゃん! • ということで、しばらく3系を使ってました。 が、キーショートカットとインテリセンス(風 味)を使って –
構造や内容がわかりやすいし、入力も早い! – マクロの入力も間違えないし、早い! – Wiki記法もそこかしこに残ってて使える! 大絶賛!! Copyright © 2014 Knowledge on Demand Inc.
7.
Confluenceのリッチテキストエディタの魅力 WYSIWYGのうち、WYG(画面のプレビュー)は文 書の構造にとどめるという割り切り – 構造以外のスタイルなんてただの飾りです。 – 本当に最終見た目が欲しければプレビューボタンで 。 –
マクロは、インラインとブロックのタイプで構造を 把握しやすく Wikiを入力する上でエディタに求められるのは – 直感的にストレスなく(できればキーボードのみで )入力できること。 – 文書の見た目ではなく、構造がわかること Copyright © 2014 Knowledge on Demand Inc.
8.
ということで、 この素晴らしいエディタをさ らに自分好みに改造したい! ! という方に贈るプレゼン Copyright © 2014
Knowledge on Demand Inc.
9.
Confluenceの改造はプラグインが基本 ユーザーマクロを使ったり、テーマ の設定で無理やりなんとかなること もありますが、基本的にはプラグイ ンを作りましょう。 – とはいえ、ユーザーマクロでもか なりのことができます Copyright ©
2014 Knowledge on Demand Inc.
10.
プラグインの作り方 Atlassian SDKをインストール – 先にJDK1.6をインストールしておく –
SDKのbinにパスを通す 任意の場所で atlas-create-confluence-plugin コマンドを実行 – ウィザードに従って入力していけばひな形が作成 – ひな形ディレクトリで atlas-run コマンドで開発環 境起動 詳細は、「confluence プラグイン 作成」で検 索 – 私か弊社菊池のブログ記事に詳細記述しています。 Copyright © 2014 Knowledge on Demand Inc.
11.
開発環境 ほぼJavaScriptのみなので、EclipseやNetBeans ・IntelliJ IDEAなどの統合開発環境は不要 簡単なテキストエディタ(not メモ帳)でOK JavaScriptがメインなので、GoogleChromeか、 Firefox+Firebugは必須で。 Copyright
© 2014 Knowledge on Demand Inc.
12.
今回の目標 よく使うマクロ(今回は「情報」マクロ)をエ ディタにボタンとして加え、キーショートカッ トも有効にする。 Copyright © 2014
Knowledge on Demand Inc.
13.
使う技術 JavaScipt – 初歩のjQueryの知識(セレクタとイベント) Closure Template –
Googleが開発したJavaとJavaSciptのためのテンプレ ート – 拡張子は.soy – https://developers.google.com/closure/templates / Copyright © 2014 Knowledge on Demand Inc.
14.
改造1: atlassian-plugin.xml を編集 プラグイン全体の設定ファイル プラグインにWEBリ ソースを追加する モジュールを組み 込む Closure Templateを使う ための設定値 使用するClosure Templateファイル 処理を行う JavaScriptファイ ルとConfluenceの どの画面でこのJS を表示するかの指 Copyright
© 2014 定 Knowledge on Demand Inc.
15.
改造2: Closure Templateを記述 Firebugなどでボタン1つのHTMLをコピーする このあたりの HTMLをコピー Copyright
© 2014 Knowledge on Demand Inc.
16.
改造2: Closure Templateを記述 –
namespace宣言 • JavaScript変数にアサインされる際のオブジェクトになる – コメント • @param で変数宣言するとテンプレートのコール時に使用可 能 – template宣言 • 下記の場合だと Confluence.Templates.CustomEditor.button()でコールがで きる Copyright © 2014 Knowledge on Demand Inc.
17.
改造3: JavaScriptを記述する 割と泥臭く、どの部分に追加するかを検討して 記述 Copyright ©
2014 Knowledge on Demand Inc.
18.
改造3: JavaScriptを記述する リッチテキストエディタの初期化時に実行 する関数を登録 必要な変数を宣言 ・リッチテキストエディタ ・ページID ・割り込ませるツールバー ・新規ボタンのID Closure Templateから引数 を指定してHTMLを取得 ボタンをクリック時に行う 動作を登録 Copyright
© 2014 Knowledge on Demand Inc.
19.
改造3: JavaScriptを記述する キーボードショートカットを 登録 キーボードショートカットの設定値 ・ context:
フォーカスがどこにあるときに有効か ・ descKey: ショートカットのヘルプで表示 ・ keys: 有効なショートカットの指定(複数可能) ・ op: どういう操作を行うか。 ・ param: opの引数。この場合、「id=rte-buttoninformationのボタンをクリックした」という操作にな る。 Copyright © 2014 Knowledge on Demand Inc.
20.
デモ デモ Copyright © 2014
Knowledge on Demand Inc.
21.
まとめ Confluenceのリッチエディタ、素晴らしいよ プラグインも簡単に作れて楽しいよ – JavaScript部分はAPI無くてちょっと大変かも プラグイン開発やDITAの案件があればお声掛け ください。 Copyright ©
2014 Knowledge on Demand Inc.
22.
ナレッジオンデマンドは、ナレッジエクスチェ ンジの 未来を探求します。 [ お問い合せ ] 伊藤貴史 ナレッジオンデマンド株式会社 http://www.kodnet.co.jp/ E-mail
: itoh@kodnet.co.jp Copyright © 2014 Knowledge on Demand Inc.
Jetzt herunterladen