Jump to content

Recommended Posts

anything out there can be built.  So build it, I would start with a text area field.
Then you can try adding some stuff, like an interface to read, and perform the bold, italics functions.
I would have to do a lot of thinking to come up with programming ideas bhind it, but that's all I can say, if I think of anything else I will let you nkow
Link to comment
https://forums.phpfreaks.com/topic/22896-wysiwyg-editor/#findComment-103215
Share on other sites

[quote author=mwmobley link=topic=110395.msg446152#msg446152 date=1159897705]
Take a look at tinyMCE, it might work for what you need....

http://tinymce.moxiecode.com/

I am currently using it but, its not w/out its own issues.....

mike
[/quote]

Thanks but there are waaaay too many un-needed options which just slows it right down. I'll see what I can do with it though.

EDIT: Nevermind, didn't see all the versions. :D
Link to comment
https://forums.phpfreaks.com/topic/22896-wysiwyg-editor/#findComment-103224
Share on other sites

Here's a simple sample
[code]
<html>
<head>
<meta name="generator" content="PhpED Version 4.5 (Build 4513)">
<title>wysiwyg sample</title>
<SCRIPT language='javascript'>
      function showText(txt) {
        while (txt.indexOf("[")>0) txt = txt.replace("[", "<");
        while (txt.indexOf("]")>0) txt = txt.replace("]", ">");
        while (txt.indexOf("\n")>0) txt = txt.replace("\n", "<br>");
        document.getElementById('wyg').innerHTML = txt;
      }
</SCRIPT>
</head>
<body>
<FORM>
Input (Use BB tags eg [b]=bold)<br/>
<textarea name="wysi" rows="10" cols="40" onkeyup="showText(this.value)"></textarea>
</FORM>
Preview
<DIV id='wyg' style='width:400; height: 200; border: 1px solid silver'></DIV>
</body>
</html>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/22896-wysiwyg-editor/#findComment-103262
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.