Coder Social home page Coder Social logo

Comments (15)

turnermm avatar turnermm commented on July 26, 2024

Dokuwiki does not support alignment, except for images. For other alignments you need plugins.

Shift+enter should give you a single linefeed.

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

Thx.
So the ckeditor's default alignment functions don't work in dokuwiki: {name:"paragraph",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"]} ?

Shift+Enter give a single row in ckgeditor, but after press the save, it disappear in dokuwiki and ckgeditor too. If I put more then one shift+enter, the ckgeditor's saving delete only 1 empty row, but ckgeditor do it every time when i press save, so finally it deletes all empty rows.

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024
line 1 <shift+enter>
line 2

Should give you in Dokuwiki:

line 1 \\
line 2

In HTML markup the \ is converted to <br />.

The ckgedit parser will delete multiple rows of empty lines.

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

The ckgedit parser will delete not just the multiple rows of empty lines, but always deletes a
until it deletes all of them, when you edit and save the text in ckgedit. I show you in source view, what's happening :

  1. Start (in ckgeditor):
<p>1. line: blabla</p>
<p>2. line: end</p>
  1. After I add 2 shift+enter to it, but still not save it:
<p>1. line: blabla<br />
<br />
& n b s p ; </p>
<p>2. line: end</p>
  1. After the 1. save and press edit button again it delete a <br />,I changed nothing:
<p>1. line: blabla<br />
& n b s p ; </p>
<p>2. line: end</p>
  1. After the 2. save and press the edit button again it delete the last <br /> too, I got back the original state without empty row. I changed nothing:
<p>1. line: blabla</p>
<p>2. line: end</p>

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024

I am not sure I follow this or what exactly you want to happen. Shift+enter should create a single-space between two lines. You don't use shift+enter to create extra line-spacing. If you want double spacing, just use the enter key.

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

Shift+Enter and Enter working same like in MS Office Word: Shift+Enter is the Line Break, Enter is the Paragraph Break.

The problem is complex:
1.) single-space or double-space not often enough, need more space.
1.a) You can't put multiple enter sequentially, because ckgedit parser will delete them, it just left one. (it's just double spacing).
1.b) You can put multiple Shift+Enter sequentially, but just very limited: You can put multiple shift+enter sequentially only if you use it within a paragraph and there is text before and after the Shift+Enters. So you can't put empty rows at the begin or end of a paragraph neither Shift+Enter.
2.) I would like to formating a NumberedList or BulletedList: default the is only single-space between two numbered paragraph, but i would need at least double-space.
2.a) I can't put Enter to double-space, because one Enter makes a new Numbered row, two Enter make a Numbered List.
2.b) I can't put multiple Shift+Enter to double-space, because of 1.b) point.

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024
2.) I would like to formating a NumberedList or BulletedList:   default the 
is only single-space between two numbered paragraph, but i would need at least double-space.
2.a) I can't put Enter to double-space, because one Enter makes a new Numbered row,
 two Enter make a Numbered List.

See: http://www.mturner.org/devel/doku.php?id=playground:line_spacing
For spacing between paragraphs see bottom of that page:
Spaces between and before paragraphs

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

Sorry! I was on vacation.
My problem appears on your linked example pages: I would like double space (or maybe more) between the following rows:
" double spaced
2. Ordered 2"

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024

I'm not sure what your problem is.
See the example again at "(multiple line-feeds between this and next using shift+enter)"
Done using both Chrome and Firefox.

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

Open page to edit. Don't make any change, just press save button. The save process delete 1 empty row.
Repeat it until ALL empty row will deleted! That's my problem: ALL EMPTY ROW will DELETE. Finally don't remain any empty row.

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024

Can't reproduce this in either Chrome or Firefox on Windows 7. What browser are you using and what OS?

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

Firefox on Windows 7.
What DokuWiki do you use? I use Release 2014-05-05a DokuWikiStick version.

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024

I see that this is true when there is nothing following the blank lines in that list item . That is, if you have blank lines followed by the next list item with no text between:

    item 1
      blank
      blank
      blank
    item 2

You can get around this by inserting the ~~MULTI_PLUGIN_CLOSE~~ macro after your final blank line.
So:

    item 1
      blank
      blank
      blank
     ~~MULTI_PLUGIN_CLOSE~~
    item 2

from ckgedit.

LordDarknight avatar LordDarknight commented on July 26, 2024

Wow. Thanks. It works.

I hope you can find why delete it the empty rows and you can fix it!
This is a cool plugin. It would be really great if all (original) ckeditor feature would work in DokuWiki.
Thanks for your help and plugin.

from ckgedit.

turnermm avatar turnermm commented on July 26, 2024

ckgedit can do only what Dokuwiki can do; otherwise it needs a Dokuwiki plugin. The "insert a footnote" and the "signature" tools are ckgedit plugins which I created for the purpose of inserting Dokuwiki markup into the page. The font tools --color, face, and size--are native CKeditor tools which ckgedit converts to markup for which I made a Dokuwiki plugin.

from ckgedit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.