A
A
Alexander2016-06-28 12:12:55
JavaScript
Alexander, 2016-06-28 12:12:55

How to remove garbage that summernote generates?

You need to attach the editor to the admin panel on laravel,
interesting like summernote
but crap in the code

<ul>
    <li style="box-sizing: inherit; margin: 0px; padding: 0px; font-size: inherit;">
        сбор и анализ
    </li>
</ul>

and so for each element of the list
, it's impossible to withstand :)
is it possible to somehow set it in the editor's parameters so that it does not substitute styles?
but only engaged in markup
tried removeFormat: true during initialization, but it does not help

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Yarkov, 2016-06-28
@alexmixaylov

And TinyMCE did not please?

A
Alexander Ablizin, 2016-06-28
@mcmraak

summernote is a very good wusivug, it doesn't do any garbage (at least I didn't have any problems). But it has a great plugin for uploading files and a nice codemirror code mode with the ability to choose a theme. TiniMCE is of course also very cool, but too fat IMHO.
Initialization:

$('.summernote').summernote({
    lang:"ru-RU",
    height: 300
});

Read code:
3108d25c910d4ca4a4ba43bbbf602583.png5c5a5e7baddd437abce9be0aa968bdab.png

S
sitev_ru, 2016-06-28
@sitev_ru

I went to the site summernote.org I entered
the list of checks 1, 2, 3 and hello in bold ... I press the button > Code View and this is what I see:
Seems like what you need...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question