collective.markitup将markitup与plone集成在一起
collective.markitup的Python项目详细描述
简介
该产品集成了markitup编辑器和plone。markitup是 将文本区域转换为可预览的所见即所得编辑器的jquery插件。
底部带有重组文本和预览的Markitup编辑器
collective.markitup不提供任何其他标记语言。它只是一个编辑器,您可以使用它来编辑标记、重新构造文本,或者您可以在plone的标记设置控制面板中选择的任何其他标记。到现在为止,markdown和structuredtext工作得很好。而且它有很好的集成plone,可以像tinymce那样放入图像和链接。
markitup编辑器与finder集成,从plone中选择图像。
安装
安装collective.markitupjust like any other Plone product。
如何使用collective.markitup
- 安装它。
- 在个人偏好中,将编辑器设置为markitup。 也可以在“站点设置”—“编辑”中将其设置为默认编辑器。 如果我们编辑HTML,我们会返回到Tinymce编辑器。这样我们就可以 将itup标记为默认值,然后使用适当的编辑器编辑所有需要的链接。
- 确保选中了您希望用户能够使用的任何标记语言 在站点设置中→标记。现在只有text/x-web-markdown和text/restructured。
贡献
代码位于github上的集合存储库中: https://github.com/collective/collective.markitup
更改
0.2(2014-08-05)
- escaped lt and gt characters, also bind to dexterity richTextWidget [Manuel Reinhardt]
- fix many problems with restructuredText and some with Markdown, see commits for details [MrTango]
- add dependencies for plonefinder and quickupload to metadata, to activate it on install [MrTango]
- plone 4.3 compatibility fixes [MrTango]
- setup test buildout [MrTango]
0.1(2011-10-20)
- Allow editor to apply to any AT Rich Text Field on an object, rather than just to the body [cewing]
- Removed magicMarkup prompt for URL in link and image sets, it is redundant and confusing to have to see it [cewing]
- Improved prompting information for magicMarkups in init.js to clarify the purpose of these prompts for end users [cewing]
- Added image scales and image alignment classes for the image set overrides. Included sensible defaults for both. [cewing]
- Auto-close the finder window opened for image and link buttons, if the plonefinder has forcecloseoninsert set to 1. [cewing]
- Dependency on jquerytools 1.2 or greater. [msmith64]
- FIXED: Image/Link picker fails because format string no longer specified in JSON. [msmith64]
- FIXED: MarkItUp fails to load when no override is specified. [msmith64]
- Added nazmd support [fvox13]
- getSite() is cleaner than getUtility() [msmith64]
- Registry component so you can add settings for any markup language. Currently takes JSON, so it’s a mess, but it’s something. [msmith64]
- Browse to add links via the finder; however, now I have to go back and figure out how folks can add external links, too.
- Got the images to appear in the editor. archetypes_tool doesn’t want to give me a usable page from a UID, so I hacked a view that gives a 301 for any given UID that points to a real page. Not ideal, but at least now the image button actually works. [msmith64]
- Got the plonefinder to show images. (“url” selectiontype broken: Must use uid.)
- Create the Javascript override for plonefinder’s Browser.selectItem
- Much cleaner subclass of Finder. [msmith64]
- Added documentation to init.js.
- Wrapper to hide the ugly loop that MarkItUp requires in order to override individual buttons. [msmith64]
- Much cleaner way of doing the transforms for previews. Safe, fast, and readable. MarkUpSet directories have to be named after the subtype (secondhalf of the mimetype). [msmith64]
- Improved preview styles by adding <div id=”content”/> around the content to be previewed. [msmith64]
- Improved preview styles even more so that they don’t need HTTP requests. Now the only crappiness is the amount of Javascript needed to get it done. [msmith64]
- Improved preview styles so loading them isn’t quite as crappy. Still crappy though
- Some cleanup/whitespace pedantry [msmith64]
- Depends on collective.plonefinder [msmith64]
- Added a somewhat crappy way to apply the page styles to the preview. It’s crappy, but it’s faster that causing Plone to load a full-template page. [msmith64]
- Used portal_url defined in plone_javascript_variables.js to find root path to objects. [msmith64]
- Removed unneeded template.
- Previewer can pick between reStructuredText, Markdown, Textile, (and HTML, which is a no-op).
- Auto-loads based on chosen content-type.
- Needed resources load on-the-fly, so very little needs to be in the Plone registries.
- Added plugins for Textile and Rest as well as more robust HTML.
- Simple, unobtrusive default look. [msmith64]
- Added proof-of-concept AJAX preview view of Markdown transform. [msmith64]
- Tweaked GS profile so that user preferences are respected. TinyMCE, I’m talking to you. [msmith64]
- Added MarkItUp JQuery plugin and registered resources in basic GS profile. [msmith64]
- Added MarkItUp to available editors in control panel. [msmith64]
- Initial setup [msmith64]