でも複数のエディターをユーザごとに設定できるようにするには
/portal_skins/customにwysiwyg_supportを追加して編集する必要があります。
wysiwig_supportの例
全部使うならそのままコピペでオッケー、
二種類使うなら使わないものの色をはずせば使えると思う。
赤:CMFVisualEditor 青:Epoz 黄:FCKEditor
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en"
"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html i18n:domain="plone">
<!-- wysiwyg default widget -->
<div metal:define-macro="wysiwygEditorBox">
<tal:block tal:define="useCMFVE python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')=='Visual Editor' and request.environ.get('HTTP_USER_AGENT').count('MSIE');
useEpoz python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')=='Epoz';
useFCK python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')=='FCK Editor';
wysiwyg python: useCMFVE | useEpoz | useFCK">
<tal:block tal:condition="useEpoz"
tal:define="ztu modules/ZTUtils;
pss modules/Products/PythonScripts/standard;
text_format python: getattr(here,'text_format','html');
getProperty python: here.stylesheet_properties.getProperty;
current_skin python: ztu.make_query(skin=request.get(here.portal_skins.getRequestVarname(), ''));"
tal:replace="structure python: here.Epoz(
inputname,
data = test(text_format=='structured-text',
pss.structured_text(inputvalue),
test(text_format=='plain',
pss.newline_to_br(inputvalue),
inputvalue)),
toolbox = here.absolute_url() + '/epoz_toolbox',
style = 'width: 800px; height: 600px; margin-top: 2px; border: %s;' % (getProperty('preBorder','1px solid #8cacbb'),),
button = 'background-color: %s; border: 1px solid %s; cursor: pointer; margin-right: 1px; margin-bottom: 1px;' % (
getProperty('contentTabBackground','#CDE2A7'),
getProperty('contentTabFontColor','#578308'),),
path = portal_url + '/')">
</tal:block>
<tal:block tal:condition="python: useCMFVE">
<iframe name="visedit" style="width: 800px; height: 600px; border:solid gray 1px;" tal:attributes="src string:visualeditor_edit?BASEURL=${here/portal_url}"></iframe>
<textarea cols="80"
rows="25"
tabindex=""
name="description"
style="display:none"
tal:content="inputvalue"
tal:attributes="name inputname;
id inputname;
onfocus onfocus|nothing;
onblur onblur|nothing;
tabindex tabindex|nothing"></textarea>
</tal:block>
<tal:block tal:condition="python: useFCK"
tal:define="parent_url python:here.aq_parent.absolute_url();
cleaninput0 python:inputvalue.replace('\x5C','\x5C\x5C');
cleaninput1 python:cleaninput0.replace('\x27','\x5C\x27');
cleaninput2 python:cleaninput1.replace('\r',' ');
cleaninput python:cleaninput2.replace('\n',' ')">
<script type="text/javascript" src="" tal:attributes="src string:fckeditor.js">
</script>
<script type="text/javascript" tal:content="structure string:
<!--
var oFCKeditor=new FCKeditor('${inputname}');
oFCKeditor.BasePath='${request/URLPATH2}/';
oFCKeditor.Value='${cleaninput}';
oFCKeditor.ToolbarSet='ZopeCmf';
oFCKeditor.Width=780;
oFCKeditor.Height=600;
oFCKeditor.Create();
-->
">
The FCK Editor Script
</script>
</tal:block>
<tal:block condition="not: wysiwyg">
<textarea cols="80"
rows="25"
tabindex=""
name="text"
tal:content="inputvalue"
tal:attributes="name inputname;
id inputname;
onfocus onfocus|nothing;
onblur onblur|nothing;
tabindex tabindex|nothing;" id="Textarea2"></textarea>
</tal:block>
</tal:block>
</div>
<div metal:define-macro="textFormatSelector">
<tal:block tal:define="wysiwyg python: here.portal_membership.getAuthenticatedMember().getProperty('wysiwyg_editor')!='None'">
<tal:block condition="wysiwyg">
<input type="hidden"
name="text_format"
value="html" id="Hidden1"/>
</tal:block>
<tal:block condition="not: wysiwyg">
<div class="row">
<div class="label">
<span i18n:translate="label_format">Format</span>
<div id="format_help"
i18n:translate="help_format"
class="help"
style="visibility:hidden">
Select which format you want to type the contents of this
document in. If you are unsure of which format to use, just
select Plain Text and type the document as you usually
do.
</div>
</div>
<div class="field"
tal:define="tabindex tabindex/next;
text_format python:request.get('text_format', getattr(here,'text_format','structured-text'))">
<input class="noborder"
type="radio"
name="text_format"
value="structured-text"
tabindex=""
id="cb_structuredtext"
onfocus="formtooltip('format_help',1)"
onblur="formtooltip('format_help',0)"
tal:attributes="checked python:test(text_format=='structured-text', 1, '');
tabindex tabindex;"
/>
<label for="cb_structuredtext" i18n:translate="structured_text">Structured Text</label> <br />
<input class="noborder"
type="radio"
name="text_format"
value="html"
tabindex=""
id="cb_html"
tal:attributes="checked python:test(text_format=='html', 1, '');
tabindex tabindex;"
onfocus="formtooltip('format_help',1)"
onblur="formtooltip('format_help',0)"
/>
<label for="cb_html" i18n:translate="html">HTML</label> <br />
<input class="noborder"
type="radio"
name="text_format"
value="plain"
tabindex=""
id="cb_plain"
tal:attributes="checked python:test(text_format=='plain', 1, '');
tabindex tabindex;"
onfocus="formtooltip('format_help',1)"
onblur="formtooltip('format_help',0)"
/>
<label for="cb_plain" i18n:translate="plain_text">Plain Text</label>
</div>
</div>
</tal:block>
</tal:block>
</div>
</html>
【ZOPE/CMF/Ploneの最新記事】






wysiwyg_supportを追加する時、オブジェクトの種類は何を選べばよいですか??
よろしくお願いします。
<a href= http://www.freewebs.com/aiseth/14.html >14</a>
http://www.angelfire.com/uubaim/6.html
<a href= http://www.angelfire.com/uubaim/9.html >9</a>
http://www.angelfire.com/uubaim/7.html
<a href= http://www.angelfire.com/uubaim/8.html >8</a>
http://www.freewebs.com/aiseth/18.html
<a href= http://www.freewebs.com/aiseth/11.html >11</a>
http://www.freewebs.com/aiseth/10.html
<a href= http://www.angelfire.com/uubaim/9.html >9</a>
http://www.freewebs.com/aiseth/14.html
<a href= http://www.angelfire.com/uubaim/1.html >1</a>
http://www.freewebs.com/aiseth/18.html
<a href= http://www.freewebs.com/aiseth/15.html >15</a>
http://www.freewebs.com/aiseth/12.html
<a href= http://www.angelfire.com/uubaim/4.html >4</a>
http://www.angelfire.com/uubaim/3.html
<a href= http://www.angelfire.com/uubaim/7.html >7</a>
http://www.angelfire.com/uubaim/2.html
<a href= http://www.angelfire.com/uubaim/6.html >6</a>
http://www.freewebs.com/aiseth/17.html
思い立ったが吉日生活
<a href= http://znblibva.info/8wo.html >Used Auto Finance</a>
http://skuhwxdt.info/9x9.html
<a href= http://bnhbggln.info/52a.html >Real Estate Broker Residential</a>
http://sctrnopw.info/5vr.html
<a href= http://bfhfkdkv.info/amb.html >Evergreen School District Vancouver Wa</a>
http://zwxlcxhy.info/9f3.html
<a href= http://hlwstyfi.info/79x.html >Wood Cabinets</a>
http://kwijodyd.info/ats.html
<a href= http://tciklxpo.info/b03.html >Buy Blown Glass Pipes</a>
http://znblibva.info/3t8.html
<a href= http://tciklxpo.info/6fm.html >Mercury Outboard Decals</a>
http://ruswxuzu.info/4k.html
<a href= http://bfhfkdkv.info/at9.html >School Psychologist Kansas</a>
http://jojjvnfd.info/30g.html
<a href= http://wdnvbdhp.info/21g.html >Munice 3 Speed Heavy Duty Transmission</a>
http://pirubvuz.info/45a.html
<a href= http://tciklxpo.info/2tv.html >Virginia Company Bank</a>
http://skuhwxdt.info/4ld.html
<a href= http://znblibva.info/7y4.html >Free Fun Pages</a>
http://bfhfkdkv.info/2n3.html
<a href= http://zwxlcxhy.info/2m4.html >Snowshoeing Bed Breakfast New Hampshire</a>
http://ngynrrfm.info/afx.html
<a href= http://znblibva.info/3rp.html >New York Male Brow Lift Doctor</a>
http://zuxocihs.info/7sj.html
<a href= http://kadohsnp.info/768.html >Women Getting Wild At Parties</a>
http://dfbuhfwz.info/1sn.html
<a href= http://jojjvnfd.info/rc.html >Salma Hayek Fansite</a>
http://zwxlcxhy.info/77x.html
<a href= http://sctrnopw.info/4vl.html >Fort Worth Health Insurance</a>
http://dfbuhfwz.info/6ja.html
<a href= http://bfhfkdkv.info/aeb.html >Pc Power Supply Reviews</a>
http://tciklxpo.info/pl.html
<a href= http://bfhfkdkv.info/1jb.html >Butcher Equipment Discount</a>
http://pirubvuz.info/1fs.html
<a href= http://dfbuhfwz.info/4fj.html >Search Marketing Use Overture Business</a>
http://kadohsnp.info/257.html
<a href= http://sctrnopw.info/3yn.html >Body Sculpture Lotion</a>
http://kadohsnp.info/8qw.html
<a href= http://vbrjpjnj.info/855.html >Federal Grants For Business</a>
http://znblibva.info/469.html
<a href= http://vbrjpjnj.info/4sf.html >Free Sat Practice Tests</a>
http://jojjvnfd.info/2rs.html
<a href= http://vbrjpjnj.info/6rf.html >Text Messaging Services</a>
http://ruswxuzu.info/7ng.html
<a href= http://jojjvnfd.info/15s.html >Hotel Atlantic Chennai</a>
http://zuicfdon.info/adc.html
<a href= http://ruswxuzu.info/8de.html >Best Buy Web Site</a>
http://wdnvbdhp.info/4ck.html
<a href= http://bfhfkdkv.info/9nm.html >Drive Shaft Ford</a>
http://kwijodyd.info/7p5.html
<a href= http://kadohsnp.info/kr.html >Salisbury Fire Dept</a>
http://zuxocihs.info/3pd.html
<a href= http://znblibva.info/azw.html >Jamaica Phone Card Europe</a>
http://dfbuhfwz.info/4sp.html
<a href= http://zuxocihs.info/4l5.html >Current Weather In Puerto Rico</a>
http://bfhfkdkv.info/7pl.html
<a href= http://kadohsnp.info/1w7.html >Cherry Blossom Products</a>
http://jxrrzfrv.info/6w1.html
<a href= http://sctrnopw.info/l7.html >Antique Faro Table</a>
http://tciklxpo.info/7o4.html
思い立ったが吉日生活
<a href= http://eofzbzls.info/2r1.html >What Is Distance Learning</a>
http://xfqaewyy.info/8z.html
<a href= http://wglgqngt.info/4ip.html >Sterilite Storage Containers</a>
http://zbijblvz.info/xa.html
<a href= http://ismxsuhn.info/3rt.html >Decorate Kids Room</a>
http://ldpfgcri.info/3d1.html
<a href= http://golugzrm.info/4fl.html >Craft Supplies Hair Clips</a>
http://ismxsuhn.info/5mn.html
<a href= http://grqphghm.info/4b3.html >Seattle Christian School</a>
http://djpugpue.info/1w2.html
<a href= http://wglgqngt.info/2wu.html >Coconut Cream Cake</a>
http://evzhwkbc.info/27y.html
<a href= http://golugzrm.info/4at.html >Apple Vacation Puerto Vallarta</a>
http://swweptvj.info/2up.html
<a href= http://swweptvj.info/5ln.html >San Gabriel Valley Eye Surgery</a>
http://wvxdeoxo.info/43t.html
<a href= http://mmckxaqt.info/5i6.html >Connecticut Truck Accident Attorney</a>
http://lqkkkaiv.info/an.html
<a href= http://wvxdeoxo.info/4n.html >Hotel In Cocoa Beach Florida</a>
http://wvxdeoxo.info/5q3.html
<a href= http://zbijblvz.info/i2.html >Fisher Snow Plow</a>
http://grqphghm.info/4dz.html
<a href= http://ismxsuhn.info/4ye.html >Golf Putting Greens</a>
http://dvuzxudv.info/3nv.html
<a href= http://zbijblvz.info/2ww.html >Sample Personal Letter Of Recommendation</a>
http://golugzrm.info/624.html
<a href= http://wvxdeoxo.info/5d8.html >March Madness Picks</a>
http://fzwcekae.info/3kk.html
<a href= http://lopkiwog.info/5f8.html >Royal Canadian Mint Coin And Stamps Set</a>
http://zbijblvz.info/1gy.html
<a href= http://lopkiwog.info/1qv.html >Ford Crown Vic</a>
http://mmckxaqt.info/52n.html
<a href= http://mmckxaqt.info/4c8.html >Maternity Evening Dresses</a>
http://lawxogvd.info/2xr.html
<a href= http://xfqaewyy.info/7t.html >Vacation Mexico</a>
http://lopkiwog.info/ke.html
<a href= http://vriapmpr.info/2w5.html >Phone Date Service Toronto</a>
http://mmckxaqt.info/5rl.html
<a href= http://fzwcekae.info/5fi.html >Shedd Aquarium Chicago Illinois</a>
http://oxvxakpw.info/680.html
<a href= http://ldpfgcri.info/546.html >Decorative Wall Mirrors</a>
http://lqkkkaiv.info/1pq.html
<a href= http://zbijblvz.info/58y.html >Shelby Cobra Parts</a>
http://dvuzxudv.info/4jd.html
<a href= http://dvuzxudv.info/2s9.html >Center Hill Lake For Sale</a>
http://wglgqngt.info/5gf.html
<a href= http://wvxdeoxo.info/3qv.html >Monday Night Football Theme Song</a>
http://swweptvj.info/3hx.html
<a href= http://wglgqngt.info/42q.html >Sst Auto Finance</a>
http://lopkiwog.info/67f.html
<a href= http://ldpfgcri.info/4n6.html >School Law Pledge Of Alegiance</a>
http://lqkkkaiv.info/ll.html
<a href= http://vriapmpr.info/1jf.html >District Of Columbia Drug Rehab</a>
http://lqkkkaiv.info/1xo.html
<a href= http://xfqaewyy.info/304.html >Stevie Wonder Biography</a>
http://ismxsuhn.info/7y.html
<a href= http://golugzrm.info/3s.html >Anaheim Desert Inn</a>
http://wvxdeoxo.info/1wk.html
<a href= http://wglgqngt.info/5bz.html >Creative Writing Classes Dallas</a>
http://fzwcekae.info/3di.html
思い立ったが吉日生活