Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#829 2011-02-01 03:33:02
Re: hak_tinymce WYSIWYG article editor
Great. Let me know if anything comes up. I’ll probably push this up as version 10.0 tomorrow.
Shoving is the answer – pusher robot
Offline
#830 2011-02-02 12:48:02
- sare
- New Member
- From: Helsinki
- Registered: 2010-09-26
- Posts: 7
Re: hak_tinymce WYSIWYG article editor
Hi Patrick & others,
I’m having a hard time getting Paste as plain text to work in TinyMCE. Searched in the forum, in Moxiecode forum and googled extensively but to no avail.
What i’d like to do is, force ctrl+V or the button to strip all tags and allow strictly plain text. Moreover, forcing plain text with optional allowed html tags (table tags, p, …) would be amazing and probably too far fetched. Any thoughts or solutions greatly appreciated!
Another thing – i haven’t been reading the thread so pardon, but is the 1.0 version in bitbucket superior over the “official” latest version? Is it a newer TinyMCE version? The plugin version i’m using is 0.9.x and it comes with tinymce 3.2.7.
Offline
#831 2011-02-02 13:40:59
Re: hak_tinymce WYSIWYG article editor
I just made the 1.0 version “official”. It does have the latest stable TinyMCE 3.3.9.3.
It looks like the 3.4 betas are dealing with some pasting issues. Are you using the paste plugin ? I know there are some limitations regarding ctrl+v because FF won’t let you hijack that action unless you change something in about:config.
Shoving is the answer – pusher robot
Offline
#832 2011-02-02 15:00:42
- sare
- New Member
- From: Helsinki
- Registered: 2010-09-26
- Posts: 7
Re: hak_tinymce WYSIWYG article editor
Thank you for the fast reply. I’m using the Paste plugin (it is enabled by default) [edit2: no, it wasn’t in use. yes, now the button actually works in chrome and ff, now that the plugin is enabled.]
I’ll try the new version you’ve posted. Thank you for the effort you’ve put into the plugin, i just can’t be bothered with Textile when there’s at least one well-configured wysiwyg around. Ü
Last edited by sare (2011-02-02 15:36:23)
Offline
#833 2011-02-03 10:18:22
- Neko
- Member
- Registered: 2004-03-18
- Posts: 458
Re: hak_tinymce WYSIWYG article editor
Hi, I’m using version 1 with TXP 4.0.3 and FF4 beta (and the nginx Web server, if that helps). While the editor works fine for the excerpt, it’s kinda buggy for the body field:
Basically, text flows from right to left toward the left margin and just flows out of the viewable area, which consists of only 2 characters at the moment.
Any idea regarding how to fix this?
Thanks.
EDIT
Well, it’s FF4. With FF3.6 everything is OK. It’s still strange that the excerpt works, tho.
Last edited by Neko (2011-02-03 10:24:46)
Offline
#834 2011-02-03 13:29:04
Re: hak_tinymce WYSIWYG article editor
You try the 3.4 beta of tinyMCE and see if it handles FF4 better but it could have other issues since its beta.
Shoving is the answer – pusher robot
Offline
#835 2011-02-04 19:26:16
Re: hak_tinymce WYSIWYG article editor
Howdy!
I’m a new convert to hak_tinymce. I hate wysiwyg editors, but I’m about to hand over a site I built for an organization to the team that will be maintaining it, and I don’t think they will warm up to Textile.
So last week I installed hak_tinymce, and configured it to show only bare-bones HTML formatting. Very cool. But all previously-entered content was formatted in Textile, and hak_tinymce intelligently shows the Textile version for articles created in Textile. That’s awesome, but potentially confusing for the client team. What to do?
Here’s the MySQL query I used to convert all the Textile-formatted content into a version the client can confidently edit with TinyMCE:
UPDATE textpattern SET
Body = Body_html,
textile_body = 0
WHERE textile_body='1';
That’s all! [Standard cautions apply: Back up your DB before running SQL provided by strangers. Void where prohibited, etc.]
This may have come up before, but I wanted to post it here in case someone else may find it useful.
[Edit: Forgot to close the code-block.]
Last edited by johnstephens (2011-02-04 19:26:58)
Offline
#836 2011-02-04 19:31:28
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: hak_tinymce WYSIWYG article editor
johnstephens wrote:
…Here’s the MySQL query I used to convert all the Textile-formatted content into a version the client can confidently edit with TinyMCE:
Hi,
I think you could go a step ahead if you copy directly the ‘Body_html’ fields to the ‘body’ column. This way all articles are automatically tinyMCE-ready.
Last edited by redbot (2011-02-04 19:32:10)
Offline
#837 2011-02-04 20:37:07
Re: hak_tinymce WYSIWYG article editor
redbot wrote:
Hi,
I think you could go a step ahead if you copy directly the ‘Body_html’ fields to the ‘body’ column. This way all articles are automatically tinyMCE-ready.
Maybe I don’t understand your suggestion, but that’s exactly what I’ve done with that query: copy the HTML content from Body_html to Body. Right?
Offline
#838 2011-02-05 02:57:56
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: hak_tinymce WYSIWYG article editor
johnstephens wrote:
Maybe I don’t understand your suggestion, but that’s exactly what I’ve done with that query: copy the HTML content from Body_html to Body. Right?
Oops, yes you are right, I didn’t read carefully.
Offline
#839 2011-03-09 19:43:30
Re: hak_tinymce WYSIWYG article editor
Hey mrJoon…
Is there a way to support use of textpattern tags in a tinymce controlled text area?
extended_valid_elements : "txp:*[*]",
works, but it takes a self-closing tag and turns it into an empty tag pair.
Last edited by mrdale (2011-03-09 19:50:55)
Offline
#840 2011-03-09 19:51:42
Re: hak_tinymce WYSIWYG article editor
I need to get off my ass and start some docs. This thread is out of hand. This should work or at least it did at one point. You can limit the extended_valid_elements to just tags you want ie: txp:image[*] instead of the wildcard.
This relied on a specific implementation of how custom_elements worked at the time so if it doesn’t work let me know.
Shoving is the answer – pusher robot
Offline