Rich Text Field(CKEditor) ツールバーのカスタマイズ

		<xp:inputRichText id="inputRichText1">
			<xp:this.dojoAttributes>
				<xp:dojoAttribute name="toolbar">
					<xp:this.value><![CDATA[#{javascript:var customToolbar="[['Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates'],"
+"['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'],"
+"['Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt'],"
+"['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],"
+"'/',"
+"['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat'],"
+"['NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'],"
+"['Link','Unlink','Anchor'],"
+"['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],"
+"'/',"
+"['Styles','Format','Font','FontSize'],"
+"['TextColor','BGColor'],"
+"['Maximize', 'ShowBlocks','-','About']]";
return customToolbar;}]]></xp:this.value>
				</xp:dojoAttribute>
			</xp:this.dojoAttributes>
		</xp:inputRichText>





Rich Text Field(CKEditor) ツールバーのカスタマイズを自由に行いたいときのサンプルコードです。

JavaScript (Server)
kazut
August 28, 2016 at 9:44 AM
Rating
0





No comments yetLogin first to comment...