Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2011-04-28 16:14:31

marjoleink
Member
From: Amsterdam, NL
Registered: 2011-04-26
Posts: 18

Re: soo_editarea: EditArea integration with Txp tag highlighting

mrdale wrote:

jsoo wrote: Good idea, done in v0.1.4. Note that it will allow you to go larger than the Txp default, but not smaller.

Well that was easy… how about this… “I want a pony”

if ($user == 'mrdale') echo "here's your pony!";

There you are!


Marjolein Katsma ¤ Hacking a theme to learn tags now ¤ nul = nada — lt = very little — why is there even a site there?

Offline

#26 2011-11-21 17:50:37

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: soo_editarea: EditArea integration with Txp tag highlighting

edit: Ooops, sorry folks. This problem was due to running PHP 4 rather than PHP 5 or better. Flipped the PHP switch forward and all is well. Beautiful. Disregard the rest of this post. Problem solved.

———————-

  1. Installed and activated soo_editarea version 0.1.4 on TXP 4.4.1
  2. Placed /edit_area (EditArea 0.8.2) in /textpattern
  3. Installed and activated soo_plugin_pref version 0.2.2
  4. Placed txp.js in /edit_area/reg_syntax

Going to Presentation > Forms, Pages, Style:

Fatal error: Call to undefined function: array_diff_key() in /textpattern/lib/txplib_misc.php(653) : eval()'d code on line 96

Going to Plugins > soo_editarea > Options:

Fatal error: Call to undefined function: array_diff_key() in /textpattern/lib/txplib_misc.php(540) : eval()'d code on line 81

Last edited by whaleen (2011-11-21 17:55:40)


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#27 2012-01-08 00:16:48

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: soo_editarea: EditArea integration with Txp tag highlighting

This is awesome, thanks :¬)

Last edited by rossharvey (2012-01-08 00:17:49)

Offline

#28 2012-01-08 05:53:30

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: soo_editarea: EditArea integration with Txp tag highlighting

Just edited this plugin to allow zencoding… just change

$func = 'editAreaLoader.init({' . n . t . 'start_highlight: true';

to

$func = 'editAreaLoader.init({' . n . t . 'start_highlight: true, plugins: "zencoding"';

and make sure the zencoding plugin is in editareas plug directory.

hint: maybe this could be made a config item.

Last edited by mrdale (2012-01-08 05:53:54)

Offline

#29 2012-01-09 16:45:06

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: soo_editarea: EditArea integration with Txp tag highlighting

Fantastic, thanks Dale, I was thinking about that just this morning :¬)

Edit: I added the zencoding folder under the editarea plugin directory, then changed the above line via editing the plugin. How now, do I invoke the ‘replace’ after typing, for example, div#content>p.icon ?

Edit 2: found it: ctrl+,

Last edited by rossharvey (2012-01-09 16:55:58)

Offline

#30 2012-01-24 15:39:01

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: soo_editarea: EditArea integration with Txp tag highlighting

mrdale wrote:

hint: maybe this could be made a config item.

I can take a hint. Especially when it’s presented on a silver platter. v0.1.5 now available; thanks again to mrdale. I haven’t actually tested it with zencoding, but the resultant js output looks correct to me.


Code is topiary

Offline

#31 2013-10-08 22:56:41

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: soo_editarea: EditArea integration with Txp tag highlighting

Ha! Still working in txp 4.5.5. Thanks, Jeff.

Offline

Board footer

Powered by FluxBB