GetSimple Support Forum
CKeditor, "more" tag... - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: CKeditor, "more" tag... (/showthread.php?tid=3989)



CKeditor, "more" tag... - Carlos - 2012-12-09

From time to time someone asks for excerpts that don't strip html tags (both in blog/news plugins and GS itself).

Would it be possible to have buttons in CKeditor that let you easily insert html snippets like:

Code:
<a name="more"></a>

or:

<!--more-->

and/or:

&lt;!--more--&gt;

If so, we could have a php function that extracts just the content until the "more" tag, to have this kind of "rich" excerpt.
(Some </div> or </p> could be missing after stripping it, so something should be done to fix this. I have to take a look at how WP does...)

Thoughts?


RE: CKeditor, "more" tag... - shawn_a - 2012-12-09

We discussed this somewhere else, there are a few implementations of this.
ckeditor has default support for pagebreaks, we would need to determine what to output.

Probably stick with wordpresses implementation or drupals.


RE: CKeditor, "more" tag... - Oleg06 - 2013-03-23

I recently made a couple of buttons to ckeditor for another CMS, which inserts {cut} and [page]


RE: CKeditor, "more" tag... - Connie - 2013-03-25

you can do that with a template

I described it in the german website:

http://www.get-simple.de/editor-plugins/editor-template-plugin-einsetzen/


RE: CKeditor, "more" tag... - Carlos - 2013-03-27

@Oleg06
I'm curious, can you post more info? (or PM it to me if you prefer)

@Connie
Thank you, I bookmark it for future reference.