A
A
aiscope2016-03-30 16:55:54
css
aiscope, 2016-03-30 16:55:54

Is there an editor with the ability to customize the generated html code and css styles?

Hello.
Our site has static pages created by content managers using the tinyMCE editor.
I would like the generated markup to use our css styles, and not built-in (inline).
For example, instead of <b>example text</b>, code like <span class="my-custom-bold-style>example text</b> was generated.
Ideally, we would like the design of static content created in this way to change automatically when changing the css styles of the site by the layout designer.
Apparently, it would be possible to set up an editor that understands BBCode or Wiki style syntax, but the problem is that this solution is not suitable for content managers. I dug in the direction of WYSIWYM editors, found WYMeditor, but it seems to also not very suitable for content managers.
Is there a WYSIWYG editor that can customize these things? Ideally, a custom html code would be generated when clicking on the buttons B, I, Image, etc. toolbar.
Or the only alternative is to edit the source code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Elwen, 2016-03-30
@Elwen

You shouldn't replace standard markup elements with styled spans. Thus, all the semantic markup of the text is lost.
TinyMCE supports adding custom formats - https://www.tinymce.com/docs/demo/format-custom/ .
As a last resort, you can also add additional styles to standard elements. It is not accepted, but not prohibited.

R
Rafael™, 2016-03-30
@maxminimus

the programmer is then considered a programmer-developer when he can write such an editor for himself,
which means he fumbles in the subject and understands web languages,
otherwise he is not a developer, but a comber-winder who can only work according to a template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question