Yii Framework Forum: Wiki-Style Editor Based On Jmarkitup And Wikitext - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Wiki-Style Editor Based On Jmarkitup And Wikitext simple extension for writing and parsing wiki Rate Topic: -----

#1 User is offline   Kabul Nazret 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 13-October 12
  • Location:Thailand

Posted 13 October 2012 - 06:50 AM

Hello

It's my first extension for Yii.
So, this is what i've done:

I used jMarkItUp widget, jquery.ui.dialog and jquery.wikitext.

1. I took jMarkitupEditor extension and used JWikiSyntaxEditor from it.
2. In the jquery.marktitup.js script I overloaded the function "preview", using jquery.ui.dialog instead of IFrame.
3. Now, when I press the "preview" button I get a text from markItUp textarea and make html from wiki code using jquery.wikitext.
4. Next a modal dialog appears and the result is shown to a user without opening a new window or adding a new textarea below the editor window.

I added the following new tags into the JWikiSyntaxEditor set (like in wikimedia): div, span, u, sub, sup.

If someone is going to use this extension I can upload it into Yii extenstions storage or gitHub.

Below you can see screenshots of the updated extension
Attached File  ext1.jpg (39.33K)
Number of downloads: 13
Attached File  ext2.jpg (46.78K)
Number of downloads: 14
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users