collective.markitup将markitup与plone集成在一起

collective.markitup的Python项目详细描述


简介

该产品集成了markitup编辑器和plone。markitup是 将文本区域转换为可预览的所见即所得编辑器的jquery插件。

MarkItUp Editor with reStructured Text and preview on bottom

底部带有重组文本和预览的Markitup编辑器

collective.markitup不提供任何其他标记语言。它只是一个编辑器,您可以使用它来编辑标记、重新构造文本,或者您可以在plone的标记设置控制面板中选择的任何其他标记。到现在为止,markdown和structuredtext工作得很好。而且它有很好的集成plone,可以像tinymce那样放入图像和链接。

MarkItUp Editor with finder integration, to choose images from Plone.

markitup编辑器与finder集成,从plone中选择图像。

安装

安装collective.markitupjust like any other Plone product

如何使用collective.markitup

  1. 安装它。
  2. 在个人偏好中,将编辑器设置为markitup。 也可以在“站点设置”—“编辑”中将其设置为默认编辑器。 如果我们编辑HTML,我们会返回到Tinymce编辑器。这样我们就可以 将itup标记为默认值,然后使用适当的编辑器编辑所有需要的链接。
  3. 确保选中了您希望用户能够使用的任何标记语言 在站点设置中→标记。现在只有text/x-web-markdown和text/restructured。

贡献

代码位于github上的集合存储库中: https://github.com/collective/collective.markitup

作者

  • 迈克尔A.史密斯
  • Cris Ewing(Cewing)
  • 梅克·德斯塔彭(探戈先生)

更改

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]

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在Eclipse中使用多个调用在一行上打印java   javajackson序列化问题。只有同一实体的第一个对象可以很好地序列化   Java中Deflate函数的等价充气   使用customlitview的java Android actionbar搜索   java“<T>T get()”是什么意思?(它有用吗?)   目标c使用CommonCrypto使用AES256加密,使用OpenSSL或Java解密   java在运行时更新资源文件   fileinputstream在java中访问并将数据写入现有文件   带集群的java Android Mapbox我希望每个功能都有不同的标记图像   java JDK8>JDK10:PKIX路径生成失败:SunCertPathBuilderException:找不到请求目标的有效证书路径   java使用Hk2生成具有指定构造函数参数的实例   为什么这个系统。出来Java中的println()打印到控制台?   java目录和文件名连接不起作用   使用mockito和通配符绘图的java