Forum

Thread tagged as: Question, Blog, Redactor

moving from textile to html (redactor)

I have a client with a blog who has been using textile with markitup. They have asked about using a WYSIWYG editor for posts.

I wondered about the implementation as changing the template will effect older posts as well. I have tested a template locally using both - I changed editor="markitup" to editor="redactor", added html="true" and kept "textile="true". This seems to cope with the old textile formatting and the HTML tags redactor adds.

Is there a possibility of conflict here with keeping textile on while using redactor?

The original template has:

<perch:blog id="postDescHTML" type="textarea" label="Post" order="4" textile="true" editor="markitup" size="xxl autowidth" required="true"  imagewidth="500" imageheight="500" imagequality="85" />

The new template I have been testing has:

<perch:blog id="postDescHTML" type="textarea" label="Post" order="4" editor="redactor" textile="true" html="true" size="xxl autowidth" required="true" imagewidth="500" imageheight="500" imagequality="85" />

Although it seems to work I don't think you're meant to use both together and I'm worried about breaking something by doing this. There are over 300 existing posts so it's not really feasible to edit out textile on all of those.

The other option I thought of was having two different post templates (one with textile/markitup, one with html/redactor). Is there a way I can make the new default template html/redactor while setting the old posts to use the textile/markitup template (without going through each one manually)?

Tom Bedford

Tom Bedford 3 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How often will those old Textile posts be edited?

Only if something needed amending (e.g. spelling mistake / inaccuracy), so infrequent if ever.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You should be good to go then. The output from Textile is HTML, so that's what's output to your site. If only the authoring format is changing then it shouldn't be a big deal to switch.

Thanks Drew.