Markdown editor

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
bruco

Markdown editor

Post by bruco »

Founded few previous messages, but not understood if they deal with the same topic.

I wish to use MarkDown (http://daringfireball.net/projects/markdown/) in place of FCKEditor to write page content, or at least in addition to FCKEditor. I know that MarkDown has a PHP porting (http://www.michelf.com/projects/php-markdown/) but I has no idea on how install it in CMS as a plugin. Has anybody already made such thing and can help me? Many thanks for your patience.
Last edited by bruco on Thu Mar 22, 2007 5:37 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Markdown editor

Post by calguy1000 »

markdown is built in to CMS Made simple, but the editor or toolbar for markdown isn't.
the toolbar can be found here:  http://dev.cmsmadesimple.org/projects/markdowntoolbar/

to use markdown in cms, just do this {content|markdown} or....  {cms_markdown}{content}{/cms_markdown}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bruco

Re: Markdown editor

Post by bruco »

calguy1000 wrote: markdown is built in to CMS Made simple, but the editor or toolbar for markdown isn't.
the toolbar can be found here:  http://dev.cmsmadesimple.org/projects/markdowntoolbar/

to use markdown in cms, just do this {content|markdown} or....  {cms_markdown}{content}{/cms_markdown}
Thanks for your prompt reply.
It seems to me that the project site you indicate contains nothing. Isn't it?

{content|markdown} "crashes" PHP and {cms_markdown}{content}{/cms_markdown} inserts a lot of tags.
Surely I am not able to use it correctly.
Is there available any documentation or tutorial page?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Markdown editor

Post by calguy1000 »

I added this to my template:
{cms_markdown}{content block='column3'}{/cms_markdown}

Then, I edited my homepage, and in the block representing column3 I put this text (some markdown stuff):

# H1
## H2
### H3
#### H4


Then hit submit.... and reloaded my homepage.

it worked well.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bruco

Re: Markdown editor

Post by bruco »

calguy1000 wrote: I added this to my template:
{cms_markdown}{content block='column3'}{/cms_markdown}

Then, I edited my homepage, and in the block representing column3 I put this text (some markdown stuff):

# H1
## H2
### H3
#### H4


Then hit submit.... and reloaded my homepage.

it worked well.
Sorry I am a very newbie and I do not understand... what do you mean by "block representing column3"?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Markdown editor

Post by calguy1000 »

my template has four content blocks.  one at the top, and one for each of three columns.

they are identified like this (there's lots more layout stuff too in the template).
  {content}
  {content block='column1'}
  {content block='column2'}
  {content block='column3'}

now, when I create a new page, and specify to use that template, or edit a page with that template, I get four text areas for which I can fill in content.

I changed the template so that instead of {content block='column3'}  I had {cms_markdown}{content block='column3'}{/cms_markdown}

Then I went and edited my homepage, which uses that template.... and in the text area for column3 I put the text described above.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bruco

Re: Markdown editor

Post by bruco »

Then I went and edited my homepage, which uses that template.... and in the text area for column3 I put the text described above.
Very clear. Thanks for your patience.
Locked

Return to “CMSMS Core”