I'm using the TinyMCE plugin in bubble.io to create the text for an email. This text is part of the larger email document. Seems TinyMCE generates an entire html document - <!DOCTYP, , ... I don't want that. I just want the html of the data in the editor. Any way to configure that?
If you are getting the entire HTML document from TinyMCE you have the fullpage plugin installed. If you stop running the fullpage plugin you should only get the data the user can see in the editor.
Related
So for some pages of my Wordpress website I created a big block of code conisiting many images and links, which I need to change from time to time. Because this was built with a plugin like Elementor manually changing hundreds of images/links would take forever.
If I could edit the source code of just this page I would copy the source code, run it through my script which would change all the links/images in seconds and paste it back in the webpage source code.
If this wasn't clear enough hear is my thought process in steps:
1: Having a webpage with content which can only (afaik) be edited through a plugin like Elementor
2: Instead copying the part with the content from the source code
3: Chaging this source code within seconds through a script
4: Pasting the new source code back into the webpage sp it is updated with the new content
Ok, so it depends on how elementor is storing the images in the image block, chances are that is will be contained in shortcodes e.g. [vietpic]<img src="wp-content/nam.jpg [/vietpic] you should be able to see this by going to the page with these images and then selecting 'Text' on the content editor. The editor will switch from the visual blockbuilding to the code which you can then copy out, run your script on and place elsewhere. Just make sure that you get the whole block, like any containing elements for instance. If this doesn't work out I'd suggest navigating to the page on the frontend, inspecting the element via the browsers inspector then selecting the container, click 'edit as html' then copy out the code. You can then run your script on this source code then paste it into an elementor custom html block.
I try to understand why WordPress source code is not saving with <p> or <br /> tags in database.
This is an image from the content editor source code.
This is an image from the database content field.
How to make that the tags stayed on do not disappear when saving?
Now it working). I used TinyMCE plugin for editor and in settings of plugin have checkbox and all working as I want
I want to arrange content in my page with tables, but when I write the code, and switch back to visual mode then back again to text mode all the
<tr> and <td>
are missing, there is a way to keep this code?
Thank you
either you disable the visual editor or use table creating plugin in wordpress for this, wordpress stripping html tags when swich to visual editor.
keep your content in text & don't switch to html before saving that content, else download the plugin for that is the simple solution.
In the Visual view in Wordpress when I press <enter> it appears as if a new paragraph is started (see image 1). But when I go to the 'Text' tab, no <p> tag can be found (see image 2).
I've installed the TinyMCE plugin because I thought it would provide me more control.
I also tried adding a codepiece to the functions.php file of my template (see here: http://www.adammershon.com/stop-wordpress-from-removing-br-and-p-tags/)
But I can't create paragraphs by entering text on the Visual tab, the only way is to insert p tags them manually on the Text view, which is unacceptable to my client.
Also when I press shift+enter on the Visual tab it goes to the next line, but on the Text there's no <br/> tag.
Important note
I've integrated my Wordpress with ASP.NET where I directly request the content from the Wordpress database. So the rendering of the HTML is NOT done by Wordpress.
How can I have Wordpress add the paragraph tags when only editing on the Visual tab?
(I did not place this post in webapps.stackexchange.com because fixing my issue most likely requires some programming.)
You Won't see p tags in text editor they will be generated at front-end
if you can't find p tags at frontend find and remove
remove_filter( 'the_content', 'wpautop' );
this can be in
themes function.php
plugin you activated
for more info check codex
UPDATE
To display the p and br tag we just need to install plugin which is tinymce-advanced and do some setting change. To change the setting just click check box for "Stop removing the p and br tags when saving and show them in HTML editor" and save. Now we can see the p and br tags in HTML mode and in database
In my application I have used CKEditor text editor to store large data.
That data may come from another html page by copying content from any web page.
When doing above scenario,
if client missed any to copy properly ended html tags from that web page, they copied incomplete html content. When client paste it inside CKEditor, it showing good.
But If I display whole content without CKEditor,
Its leading to following issues,
Page collapse , because if client copied partical (in completed content from other web page)
CSS class override
Please give solution for that.